diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-05-21 12:30:41 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-06-23 09:54:36 +0400 |
commit | 45f41b52e8f27e52388bb5e3fb6fbe4d93de161d (patch) | |
tree | 720c08bdaffe40c61e3b9411a630847e44da6129 /sql/sql_select.h | |
parent | 84568c296520f399da23f260151a7512393eb03b (diff) | |
download | mariadb-git-45f41b52e8f27e52388bb5e3fb6fbe4d93de161d.tar.gz |
MDEV-8199 - first_breadth_first_tab() takes 0.07% in OLTP RO
Split first_breadth_first_tab() into
JOIN::first_breadth_first_optimization_tab() and
JOIN::first_breadth_first_execution_tab().
This allows to eliminate function call and one condition. Adjusted callers
accordingly.
Overhead change:
first_breadth_first_tab() 0.07% -> out of radar
next_breadth_first_tab() 0.04% -> 0.04%
JOIN::cleanup() 0.15% -> 0.11%
JOIN::save_explain_data_intern() 0.28% -> 0.24%
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 6621e4e9928..9cb7e0e61b1 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1531,6 +1531,8 @@ public: int save_explain_data_intern(Explain_query *output, bool need_tmp_table, bool need_order, bool distinct, const char *message); + JOIN_TAB *first_breadth_first_optimization_tab() { return table_access_tabs; } + JOIN_TAB *first_breadth_first_execution_tab() { return join_tab; } private: /** TRUE if the query contains an aggregate function but has no GROUP |