rm5248 opened a new pull request #60: URL: https://github.com/apache/logging-log4cxx/pull/60
Every time a LoggingEvent is created, part of the information that is stored in the LoggingEvent is the name of the thread that the log is from. By turning this into a `thread_local` variable and only setting it once, I was able to to get a speedup of 25-40% depending on the configuration that I'm using. Note that since thread_local is C++11, the only check we do to see if it's supported or not is to determine if the compiler is Borland or not - everybody else seems to be just fine with it(https://en.cppreference.com/w/cpp/compiler_support). We could add a more thorough check if needed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
