chatgpt-google-extension icon indicating copy to clipboard operation
chatgpt-google-extension copied to clipboard

Improve markdown render performance

Open wong2 opened this issue 2 years ago • 1 comments

The current markdown render method is very inefficient: even if only one word is added by the ChatGPT API response, the whole markdown content will be rendered and then HTML re-rendered.

We can improve this by rendering markdown in a streaming manner, some options:

https://github.com/remarkjs/remark https://github.com/unifiedjs/unified https://github.com/micromark/micromark

wong2 avatar Dec 12 '22 02:12 wong2

https://github.com/wong2/chat-gpt-google-extension/commit/37d293b047a8f519ef77269eab3f427095968c37

wong2 avatar Dec 12 '22 14:12 wong2