• Sergey Vojtovich's avatar
    MDEV-8202 - st_select_lex::master_unit() takes 0.17% in OLTP RO · 5fc53b7c
    Sergey Vojtovich authored
    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%
    5fc53b7c
sql_lex.h 92.6 KB