Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加速 jsx 渲染性能 #2

Open
zbysir opened this issue Jun 9, 2024 · 0 comments
Open

加速 jsx 渲染性能 #2

zbysir opened this issue Jun 9, 2024 · 0 comments

Comments

@zbysir
Copy link
Owner

zbysir commented Jun 9, 2024

Deno 新增了一种 jsx 的编译方式叫 precompile,直接产出字符串,而非 React.createElement 这种需要创建很多临时对象的方式,可以让服务端的 jsx 渲染速度提升 7-20 倍。

参考:https://sorrycc.com/speeding-up-javascript-ecosystem-part-9/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant