-
Notifications
You must be signed in to change notification settings - Fork 211
Switch from html5ever to lol_html #876
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
Comments
LOL HTML is also developed by cloudflare so it has seen a lot of real-world usage. |
I think having a limit even if it's absurdly high and will "never" be hit is something good, just as a safeguard Edit: LOL Html has |
And according to Cloudflare's blog post LOL Html is vastly faster than html5ever and scales much better. I believe our performance will be somewhere in the ballpark of the tag scanner, but potentially even better than "normal" parsing since we grab two portions of the html and LOL doesn't parse innards if you specify a tag, while html5ever parses everything unconditionally I'm working on benches, so stand by for those |
Unfortunately I don't think this can be implemented until lol-html/#40 is upstreamed |
See kuchiki-rs/kuchiki#74 (comment) for discussion. In a nutshell, kuchiki is not intended for low-memory usage: it uses lots of Rc and RefCell (one for each node in the tree!) LOL HTML is intended for exactly our use case:
This would allow us to step the size of files rendered way up, possibly removing the limit altogether (#834).
The text was updated successfully, but these errors were encountered: