-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Small changes #780
Small changes #780
Conversation
fa82cbb
to
a4e2ed3
Compare
input.begin(), std::ranges::find_if(input, [character_set](const char c) { | ||
return character_sets::bit_at(character_set, c); | ||
})); | ||
const char* data = input.data(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not opposed to this change, @anonrig, but did you determine that it was worth doing? This seems significantly more complicated than what we had. It is fine if it is worth it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not noticable due to the complexity of Ada, but the instruction count should have been lower with the new implementation. Do you see different/worse results?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I am not going to check. I expect that it will save instructions especially on long inputs (say a 2x saving) and hopefully make things a bit faster.
Co-authored-by: Daniel Lemire <[email protected]>
Small changes.