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

Optimize Unicode decoding by 1% 🤡 #1178

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

purplesyringa
Copy link
Contributor

@purplesyringa purplesyringa commented Aug 19, 2024

This removes two instructions (tops) and frees up one register. This is really, really stupid, and probably does not affect performance in practice (It does on the memory-bound War and Peace benchmark though. By 1%.), but I couldn't stop myself from patching this when I read the code with a fresh mind. Sorry.

@purplesyringa purplesyringa changed the title Optimize Unicode decoding by 1% Optimize Unicode decoding by 1% 🤡 Aug 19, 2024
Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dtolnay dtolnay merged commit 50c4328 into serde-rs:master Aug 19, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants