- Notifications
You must be signed in to change notification settings - Fork10
Move to using bit sets for ScriptExtension#3
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
d03aa82 to0609daeCompareManishearth commentedJan 11, 2020
Some tests exist, I kinda want to add more including some manual ones (and maybe pull in quickcheck) |
Manishearth commentedJan 11, 2020
I also need to check perf of the important operations |
Manishearth commentedJan 11, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Benchmark numbers: It's better for most operations except for conversions and to_vec (which is to be expected). The common one -- converting a The perf wins (and losses) don't really matter here, but it's always good to start measuring early. IMO this PR is worth it just for moving all the weird stuff out of autogeneration. |
e34e1a8 toee222f7Compare
Uh oh!
There was an error while loading.Please reload this page.
Should be much faster and cleaner, since the actual implementation is no longer using a ton of autogenerated enum matches and is instead using bit operations in the handwritten part of the crate.
Fixes#2
Probably won't merge till I add tests.