-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Add an API for fast HTML escaping #15742
Comments
@littledivy @bartlomieju Some potential options
|
@cmoog While I don't find the idea of stuffing niche APIs under
|
A pure JS |
A) we don't namespace. the only namespaces we have are the Deno one, and the Deno.errors, and the latter one is an exception of the rule B)
Web APIs arent implemented in pure JS (except a few that wouldnt make sense otherwise). most of the web APIs have rust code behind them. There is no distinction and it makes no sense to have multiple APIs for the same thing. |
|
Fair. I retract. |
Qwik also has a |
In various benchmarks that @littledivy and @billywhizz did we see that escaping HTML that a huge chunk of time in React SSR examples.
It's clearly a bottleneck that could be addressed by having a dedicated API for escaping HTML (probably as an op implemented in Rust).
This should allow us to top various React SSR benchmarks.
The text was updated successfully, but these errors were encountered: