Show HN

More Branchless Optimization

by @kooi

More Branchless Optimization I thought the recent post about branchless optimization in Rust was pretty cool. This morning I came across a HN post about someone's hand rolled word counter in C. I realized it was a great candidate to remove branches from the inner loop. It gets more than a 2x speed up when branches are removed. Fun little experiment.

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app