summaryrefslogtreecommitdiff
path: root/sql/mdl.h
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2018-01-14 19:50:45 +0300
committerSergey Vojtovich <svoj@mariadb.org>2018-01-14 20:50:45 +0400
commit72136ae75c69cee5230e7be286cf12663d3d15ef (patch)
treee9ac0ea03cefb7aace6a455e856157b0980ad4c4 /sql/mdl.h
parentfc65577873967ecbba93b75260cc54275f5900d2 (diff)
downloadmariadb-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.h5
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)