• 请不要在回答技术问题时复制粘贴 AI 生成的内容
guang19
V2EX  ›  程序员

请教关于 muduo 库的问题

  •  
  •   guang19 · Apr 30, 2022 · 1860 views
    This topic created in 1493 days ago, the information mentioned may be changed or developed.

    为啥 muduo 的 Logging 部分的 Buffer 的数据存储设计在栈上而不是堆上,我知道它 Log 提供的是流式 api ,每次调用完就立刻释放了,但如果有大量的日志请求不会把栈撑爆吗?

    相关实现在: https://github.com/chenshuo/muduo/blob/master/muduo/base/LogStream.h#L25

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1116 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:21 · PVG 02:21 · LAX 11:21 · JFK 14:21
    ♥ Do have faith in what you're doing.