From 632f2307f775d255bab948de2178feb85fcac970 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Thu, 14 May 2015 17:42:40 +0400 Subject: 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(). --- sql/sql_select.h | 1 - 1 file changed, 1 deletion(-) (limited to 'sql/sql_select.h') diff --git a/sql/sql_select.h b/sql/sql_select.h index 66789ee7730..2c8723363cc 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1803,7 +1803,6 @@ bool cp_buffer_from_ref(THD *thd, TABLE *table, TABLE_REF *ref); bool error_if_full_join(JOIN *join); int report_error(TABLE *table, int error); int safe_index_read(JOIN_TAB *tab); -COND *remove_eq_conds(THD *thd, COND *cond, Item::cond_result *cond_value); int get_quick_record(SQL_SELECT *select); SORT_FIELD * make_unireg_sortorder(THD *thd, ORDER *order, uint *length, SORT_FIELD *sortorder); -- cgit v1.2.1