0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
Commit Graph

2 Commits

Author SHA1 Message Date
Taku Amano
85cbf3e984
perf(jsx): JSX performance improvement (#444)
* perf(jsx): Update benchmark for JSX.

* perf(utils/html): Improve `escape` performance.

Improved `escape` performance with reference to the react-dom implementation.

* refactor(utils/html): Subdivide HtmlEscapedString

* perf(jsx): Rewrite JSX with new `escapeToBuffer` and `JSXNode`.

* refactor(jsx): A function `jsx` returns `JSXNode` now.

* perf(html): Rewrite html middleware with new `escapeToBuffer`.

* Update tests for JSX.

* Update tests for utils/html.
2022-08-02 08:17:24 +09:00
Taku Amano
47b88f2f89
perf(jsx): Performance Tuning for JSX (#435)
* perf(jsx): Add benchmark scripts for JSX.

* perf(jsx): If included in emptyTag, return early.

* perf(jsx): Process props according to type.

* perf(jsx): Compare with React, Nano and Preact.
2022-07-31 21:58:59 +09:00