1
Branchless Rust: Making a Filter 4x Faster by Removing an If
Why a filter is slowest when it keeps half of random input, and what a branchless rewrite gains there and loses at 1%.
A blog about software development.
Visit greyblake.com → RSS feedOn Hacker News Jan 2022 – Aug 2026
Software Engineering 2Systems & Performance 1Programming Languages 1
Why a filter is slowest when it keeps half of random input, and what a branchless rewrite gains there and loses at 1%.
Rewriting the Inhyped.com React frontend in ReScript brought a sound type system and easy JS interop, at the cost of a small community.