Skip to content
Snippets Groups Projects
Commit c6fb7a0b authored by Tofu Linden's avatar Tofu Linden
Browse files

Hint to compiler that logging is never *expected* on the fast-path.

parent 9b410e89
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,7 @@ typedef LLError::NoClassInfo _LL_CLASS_TO_LOG;
do { \
static LLError::CallSite _site( \
level, __FILE__, __LINE__, typeid(_LL_CLASS_TO_LOG), __FUNCTION__, broadTag, narrowTag, once);\
if (_site.shouldLog()) \
if (LL_UNLIKELY(_site.shouldLog())) \
{ \
std::ostringstream* _out = LLError::Log::out(); \
(*_out)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment