diff options
author | Alexander Barkov <bar@mariadb.org> | 2015-05-14 17:42:40 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2015-05-14 17:42:40 +0400 |
commit | 632f2307f775d255bab948de2178feb85fcac970 (patch) | |
tree | 6f1e67f8c41d13e3a4c2e67124ae37037f78c6fe /sql/sql_update.cc | |
parent | fb3e9352a42338f4221caa7e0cb6c6f62eb9f2be (diff) | |
download | mariadb-git-632f2307f775d255bab948de2178feb85fcac970.tar.gz |
MDEV-7950 Item_func::type() takes 0.26% in OLTP RO
Step#5: changing the function remove_eq_conds() into a virtual method in Item.
It removes 6 virtual calls for Item_func::type(), and adds only 2
virtual calls for Item***::remove_eq_conds().
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 37ad416f910..e490edcc1de 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -377,7 +377,7 @@ int mysql_update(THD *thd, if (conds) { Item::cond_result cond_value; - conds= remove_eq_conds(thd, conds, &cond_value); + conds= conds->remove_eq_conds(thd, &cond_value, true); if (cond_value == Item::COND_FALSE) { limit= 0; // Impossible WHERE |