Branchless Rust: Making a Filter 4x Faster by Removing an if
Summary
The article explores branchless programming in Rust to optimize a hot path by removing unpredictable branches. It discusses CPU branch predictors, presents a branchless filter implementation, and compares performance across different data patterns with practical benchmarks and trade-offs.