-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging overhead due to unnecessary pessimism #347
Comments
On Windows, the benchmark comparisons using a lock (old) and without locking (new) in
|
On Ubuntu gcc 11, the benchmark comparisons using a lock (old) and without locking (new) in AppenderAttachableImpl::appendLoopOnAppenders are:
|
After #351, the benchmark comparing the current implementation (lock and copy appender pointers) versas no copying or lock on gcc 11 indicates a 30-40 ns overhead from the copy and no disernable lock contention:
|
AppenderAttachableImpl::appendLoopOnAppenders locks a mutex for every Logger in the path to the root Logger.
Logging overhead would be reduced significantly if AppenderAttachableImpl was immutable.
The text was updated successfully, but these errors were encountered: