perf: MarkdownCodeBlockNode Incremental rendering
Closed this issue · 0 comments
Description
codeToHtmlCurrently, the codeToHtml method updates the entire DOM each time. For streaming updates, we should be able to diff the content and then update incrementally. In addition, we need to add multiple tests to ensure that the results of incremental updates and full updates are consistent. We also need to consider whether the incremental content may be duplicated if the update speed is too fast.
Suggested solution
Currently, the codeToHtml method updates the entire DOM each time. For streaming updates, we should be able to diff the content and then update incrementally. In addition, we need to add multiple tests to ensure that the results of incremental updates and full updates are consistent. We also need to consider whether the incremental content may be duplicated if the update speed is too fast.
Alternative
No response
Additional context
No response