-
Notifications
You must be signed in to change notification settings - Fork 181
Use countTrailingZeros for indexOfTheOnlyBit #379
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
Conversation
I forgot about this one! Here you can see the benchmarks https://gist.github.com/alexbiehl/ed33c0cc7f009fc647606e9b88bf9e9c/revisions (left is original, right is with these patches) |
@alexbiehl, what's with the regressions in list conversion functions? |
I'm sorry I lost track of this. The benchmark numbers you posted look very good, but unfortunately I haven't been able to reproduce your results. Part of the problem may be the general flakiness of the incredibly short benchmarks. Can you suggest a procedure for getting good results reliably? |
Me neither! I went ahead and further "optimized" the folds by using Count{Leading, Trailing}Zeros but the effect was basically nil. I suggest we abandon this for now. Edit: Yes I could try to make longer, more reliable benchmarks first, will do that. |
All right. Let me know. We could use more reliable benchmarks regardless of what happens to this PR. |
Do you think you could rebase this? @Fuuzetsu did some benchmarking and found that it at least doesn't seem to hurt. It's definitely less messy and cuts code size in key places. |
Yeah sure, will do this week.
…On Mon, Jul 22, 2019, 20:40 David Feuer ***@***.***> wrote:
Do you think you could rebase this? @Fuuzetsu
<https://github.com/Fuuzetsu> did some benchmarking and found that it at
least doesn't seem to hurt. It's definitely less messy and cuts code size
in key places.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#379?email_source=notifications&email_token=AAOKFCNFQF4GIBFI3NFY673QAX5KJA5CNFSM4C3F6N5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QZAIQ#issuecomment-513904674>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOKFCIUZXZZZIIFUDTMFNLQAX5KJANCNFSM4C3F6N5A>
.
|
@treeowl Done! |
Thanks! |
This is an experiment for
indexOfTheOnlyBit
. I haven't benchmarked yet. But will do so tonight.