Skip to content
Discussion options

You must be logged in to vote

你如果定义成成员变量,会增加每个 Buffer 的内存开销。
我觉得就失去 stack buffer 的意义了。

如果你的 stack 够大,在 benchmark 证明确有性能提高的前提下,
可以扩大到 128K 或 256K。再大我估计就没啥意义了。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chenshuo
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
Converted from issue

This discussion was converted from issue #444 on May 18, 2022 04:19.