You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In AsyncLogWriter class, struct data has "queues" data member, defined as std::array<std::vectorstd::string, 2>, to buffer the output log messages, it's just a FIFO queue.
vector type may cause memory reallocation while data puts into the queue continuously, I think it will be better to change it to list type, to solve this performance issue.
thanks.
The text was updated successfully, but these errors were encountered:
In AsyncLogWriter class, struct data has "queues" data member, defined as std::array<std::vectorstd::string, 2>, to buffer the output log messages, it's just a FIFO queue.
vector type may cause memory reallocation while data puts into the queue continuously, I think it will be better to change it to list type, to solve this performance issue.
thanks.
The text was updated successfully, but these errors were encountered: