chenBright commented on PR #2413:
URL: https://github.com/apache/brpc/pull/2413#issuecomment-1890884707

   当日志打印频率比较低的时候,异步日志有可能退化为每个日志都包含两个动作:signal异步日志线程、异步日志线程落盘。
   
针对这种场景,采用Socket::Write的策略,同步落盘队头的日志,队列的其他日志通过异步日志线程落盘,减少signal的消耗。对于日志打印频率比较高,则通过开关支持异步日志线程来落盘全部日志。


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to