Skip to content
Discussion options

You must be logged in to vote

First off, please note that spdlog's async logger is slower than the synchronous logger when it comes to log output speed.
This is because the purpose of the async logger is to prevent the logging thread from being blocked during log output, not to speed up log output itself.
Please also see the related issues: #1391, #2282

I understand your point ...

The purpose of the async logger is as described above.
it is designed to avoid blocking the application's main processing. Therefore, to output a large number of log messages to a file at high speed, a better solution may be required.

As you pointed out, the std::mutex in the sink may cause lock contention and potentially degrade performan…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@menghaikang
Comment options

@tt4g
Comment options

Answer selected by menghaikang
@menghaikang
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants