1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-8202 - st_select_lex::master_unit() takes 0.17% in OLTP RO

To make st_select_lex::master_unit() inlinable:
- moved it's definition to sql_lex.h
- removed base class virtual master_unit() declaration since this method is
  specific to st_select_lex

Overhead change:
st_select_lex::master_unit()      0.17% -> out of radar
execute_sqlcom_select()           0.13% -> 0.12%
JOIN::save_explain_data_intern()  0.27% -> 0.23%
JOIN::optimize_inner()            0.76% -> 0.72%
JOIN::exec_inner()                0.30% -> 0.24%
JOIN::prepare()                   0.30% -> 0.29%
JOIN::optimize()                  0.05% -> 0.05%
This commit is contained in:
Sergey Vojtovich
2015-06-02 15:39:14 +04:00
parent adb952f548
commit 5fc53b7cfe
2 changed files with 1 additions and 15 deletions

View File

@@ -526,7 +526,6 @@ public:
void exclude();
void exclude_from_tree();
virtual st_select_lex_unit* master_unit()= 0;
virtual st_select_lex* outer_select()= 0;
virtual st_select_lex* return_after_parsing()= 0;
@@ -668,7 +667,6 @@ public:
TABLE *insert_table_with_stored_vcol;
void init_query();
st_select_lex_unit* master_unit();
st_select_lex* outer_select();
st_select_lex* first_select()
{
@@ -898,7 +896,7 @@ public:
void init_query();
void init_select();
st_select_lex_unit* master_unit();
st_select_lex_unit* master_unit() { return (st_select_lex_unit*) master; }
st_select_lex_unit* first_inner_unit()
{
return (st_select_lex_unit*) slave;