请教有关日志模块的问题
#559
Replies: 2 comments
-
如果你有以上担心:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
好的,谢谢大神指教 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我看源码发现muduo的log设计是一条日志一条stream,且log buffer是在栈空间分配的,用完立刻就会释放掉,速度很快。我想问的是如果前台有大量的log请求,即使栈空间设置的很大,是否仍有可能造成栈溢出?且较为频繁的分配和释放内存是否也会出现内存碎片?如果改为堆分配,除了性能差些,是否会存在其他问题?
Beta Was this translation helpful? Give feedback.
All reactions