Skip to content

降低反复渲染MD带来的内存与CPU压力#3

Open
kanyeishere wants to merge 3 commits into
AtmoOmen:masterfrom
kanyeishere:master
Open

降低反复渲染MD带来的内存与CPU压力#3
kanyeishere wants to merge 3 commits into
AtmoOmen:masterfrom
kanyeishere:master

Conversation

@kanyeishere

Copy link
Copy Markdown

现在流式输出会保留已渲染的 Markdown,并把新到的内容作为纯文本尾部持续追加
每满一秒,才将全文重新渲染为 Markdown 并清空尾部


var streamingNarrativeSB = new StringBuilder();
var streamingThinkingSB = new StringBuilder();
var streamingLock = new object();

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

锁不应该是一个 object,也不应该是一个临时变量

@AtmoOmen

AtmoOmen commented Jul 14, 2026

Copy link
Copy Markdown
Owner

由另一个 PR 引入冲突, 需要你先解决冲突, 解决后合并, 功能上无问题

@kanyeishere

Copy link
Copy Markdown
Author

由另一个 PR 引入冲突, 需要你先解决冲突, 解决后合并, 功能上无问题

已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants