mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Compilation speed (#546)
Speed up compilation Standard C++ headers contribute a lot to compilation time. Avoid algorithm and sstream in frequently used headers.
This commit is contained in:
committed by
Sergey Vojtovich
parent
fc65577873
commit
72136ae75c
@@ -195,10 +195,14 @@ void debug_sync_point(const char* lock_name, uint lock_timeout);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
/*
|
||||
DBUG_LOG() was initially intended for InnoDB. To be able to use it elsewhere
|
||||
one should #include <sstream>. We intentially avoid including it here to save
|
||||
compilation time.
|
||||
*/
|
||||
# ifdef DBUG_OFF
|
||||
# define DBUG_LOG(keyword, v) do {} while (0)
|
||||
# else
|
||||
# include <sstream>
|
||||
# define DBUG_LOG(keyword, v) do { \
|
||||
if (_db_pargs_(__LINE__, keyword)) { \
|
||||
std::ostringstream _db_s; _db_s << v; \
|
||||
|
Reference in New Issue
Block a user