Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: More Branchless Optimization (sites.google.com/david-kooi)
2 points by kooi 48 days ago | hide | past | favorite
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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: