Sergey Potapov personal blog

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%.
Points
293
HN comments
110
Submissions
1
Cited by
0 commenters

Software EngineeringSystems & Performance2026

On Hacker News

SubmittedTitle on HNPointsComments
Aug 3, 2026Branchless Rust: Making a Filter 4x Faster by Removing an If by greyblake293110

More from Sergey Potapov

All 2 posts →

Related posts from the same era