Skip to content

Optimize IDNA tables #677

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

Merged
merged 2 commits into from
Feb 16, 2021
Merged

Optimize IDNA tables #677

merged 2 commits into from
Feb 16, 2021

Conversation

djc
Copy link
Contributor

@djc djc commented Feb 16, 2021

Performance changes over 3 runs of the benchmarks:

to_ascii_merged: -5.2% (new: ~1922ns)
to_ascii_puny_label: -3.7% (new: ~1122ns)
to_ascii_simple: +2.0% (new: ~260ns, I think this is not as bad as it looks due to an outlier)
to_unicode_ascii: -1.2% (new: ~79ns)
to_unicode_merged_label: -8.8% (new: ~1858ns, I think this is not as good as it looks due to an outlier)
to_unicode_puny_label: -1.4% (new: ~1133ns)

It also appears to shave ~2.3% off the binary size for the rlib and rmeta files.

@djc
Copy link
Contributor Author

djc commented Feb 16, 2021

(The linting failures are due to clippy warnings that are fixed as part of #676.)

@valenting valenting merged commit f0010be into servo:master Feb 16, 2021
valenting added a commit that referenced this pull request Feb 16, 2021
This reverts commit f0010be, reversing
changes made to 74fd76f.

PR was merged without its dependencies.
valenting added a commit that referenced this pull request Feb 17, 2021
Implement support for reporting errors on invalid IDNA2008 characters 
Includes changes from Optimize IDNA tables #677
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.

2 participants