chatgpt-google-extension
chatgpt-google-extension copied to clipboard
Improve markdown render performance
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
https://github.com/wong2/chat-gpt-google-extension/commit/37d293b047a8f519ef77269eab3f427095968c37