diff options
author | Eugene Kosov <claprix@yandex.ru> | 2018-01-14 19:50:45 +0300 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2018-01-14 20:50:45 +0400 |
commit | 72136ae75c69cee5230e7be286cf12663d3d15ef (patch) | |
tree | e9ac0ea03cefb7aace6a455e856157b0980ad4c4 /sql/mdl.h | |
parent | fc65577873967ecbba93b75260cc54275f5900d2 (diff) | |
download | mariadb-git-72136ae75c69cee5230e7be286cf12663d3d15ef.tar.gz |
Compilation speed (#546)
Speed up compilation
Standard C++ headers contribute a lot to compilation time. Avoid algorithm
and sstream in frequently used headers.
Diffstat (limited to 'sql/mdl.h')
-rw-r--r-- | sql/mdl.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/mdl.h b/sql/mdl.h index 97216b8e7b1..2aeaef89f26 100644 --- a/sql/mdl.h +++ b/sql/mdl.h @@ -21,8 +21,6 @@ #include <mysql_com.h> #include <lf.h> -#include <algorithm> - class THD; class MDL_context; @@ -373,8 +371,7 @@ public: character set is utf-8, we can safely assume that no character starts with a zero byte. */ - using std::min; - return memcmp(m_ptr, rhs->m_ptr, min(m_length, rhs->m_length)); + return memcmp(m_ptr, rhs->m_ptr, MY_MIN(m_length, rhs->m_length)); } MDL_key(const MDL_key *rhs) |