mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-19 20:06:58 +08:00
Markdown rendering can take time. Use `React.memo` for better performance. The improvement is especially visible if there are complex elements. For example, a `<Chat />` with an output of `如何推导三次方程求根方程?` (which uses latex) now renders in about 5ms, down from ~140ms. Related: #302