MDEV-7950 Item_func::type() takes 0.26% in OLTP RO

Step #3: Splitting the function check_equality() into a method in Item.
Implementing Item::check_equality() and Item_func_eq::check_equality().
Implement Item_func_eq::build_equal_items() in addition to
Item_func::build_equal_items() and moving the call for check_equality()
from Item_func::build_equal_items() to Item_func_eq::build_equal_items().
This commit is contained in:
Alexander Barkov 2015-05-05 01:09:47 +04:00
commit 2fe4d0e6cd
3 changed files with 38 additions and 24 deletions

View file

@ -562,6 +562,9 @@ public:
cond_result eq_cmp_result() const { return COND_TRUE; }
const char *func_name() const { return "="; }
Item *negated_item();
COND *build_equal_items(THD *thd, COND_EQUAL *inherited,
bool link_item_fields);
bool check_equality(THD *thd, COND_EQUAL *cond, List<Item> *eq_list);
/*
- If this equality is created from the subquery's IN-equality:
number of the item it was created from, e.g. for