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

Branchless scalar array-array union #211

Open
saik0 opened this issue Feb 12, 2022 · 1 comment
Open

Branchless scalar array-array union #211

saik0 opened this issue Feb 12, 2022 · 1 comment

Comments

@saik0
Copy link
Contributor

saik0 commented Feb 12, 2022

https://lemire.me/blog/2021/07/14/faster-sorted-array-unions-by-reducing-branches/

@saik0 saik0 changed the title Branchless scalar array union Branchless scalar array-array union Feb 12, 2022
@saik0
Copy link
Contributor Author

saik0 commented Feb 13, 2022

impl at: saik0@f0b3f02

Perf delta range +12% -25% in runtime (lower is better). I'm going to wait until after #12 to re-evaluate before opening a PR.

I suspect the branch predictor is doing us some favors for runs, which will be less likely in run containers, then this will be a "difference that makes a difference"

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

No branches or pull requests

1 participant