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

Hide quick_xml::escape::resolve_html5_entity under escape-html feature again #764

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

Mingun
Copy link
Collaborator

@Mingun Mingun commented Jun 20, 2024

This function has significant influence to the compilation time (10+ seconds or 5x times)

Closes #763

Maybe it can be solved without hiding function under feature flag, but that is not in my priority list. If someone wants to investigate this issue, they can do PR 😄

…ature again

This function has significant influence to the compilation time (10+ seconds or 5x times)
@Mingun Mingun requested a review from dralley June 20, 2024 15:04
@Mingun
Copy link
Collaborator Author

Mingun commented Jun 20, 2024

In the future, we could consider to use phf_codegen crate to generate effective function (together with getting up-to-date mapping from WhatWG site).

@dralley dralley merged commit 0657aa0 into tafia:master Jun 20, 2024
6 checks passed
@Mingun Mingun deleted the optimize-compilation branch June 20, 2024 16:48
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

Successfully merging this pull request may close these issues.

Excessive compile time for HTML entity resolution
2 participants