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-03 12:18:04 +00:00
2023-04-04 01:05:33 +08:00
2023-04-03 12:18:04 +00:00
2023-04-04 01:05:33 +08:00
2023-04-03 03:27:42 +00:00