Jun Wu 962f434e17 perf: memorize markdown rendering
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
2023-04-05 00:16:10 -07:00
..
2023-04-02 18:28:07 +00:00
2023-04-02 18:28:07 +00:00
2023-04-05 00:16:10 -07:00
2023-04-02 18:41:25 +00:00
2023-03-28 17:45:23 +00:00