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_delete.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_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index a9470dd2b6c..213013b889c 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -372,7 +372,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, if (conds) { Item::cond_result result; - conds= remove_eq_conds(thd, conds, &result); + conds= conds->remove_eq_conds(thd, &result, true); if (result == Item::COND_FALSE) // Impossible where { limit= 0; |