Topics / Branchless programming
Performance topic
Branchless programming
Remove unpredictable branches: conditional moves, arithmetic on comparison results, lookup instead of if-chains, sorting networks.
Examples from real commits
Languages
- C++340
- C231
- Rust111
- Python26
- CUDA20
- Go18
Hardware
- x86322
- CPU207
- ARM83
- NVIDIA GPU46
- GPU42
Fields
- data & compression214
- general193
- math150
- graphics116
- CPU95
Where these come from
Repositories with the most techniques on this topic in the database:
Voultapher/sort-research-rs · 12flagos-ai/FlagGems · 7WojciechMula/base64simd · 6zeux/meshoptimizer · 6torvalds/linux · 6simdutf/simdutf · 6golang/go · 6vortex-data/vortex · 5Lokathor/wide · 5google/snappy · 5
Ask Claude for the full answer
Each technique comes with its bottleneck, measured speedup, trade-offs, conditions and the commit or paper behind it, served to Claude through MCP.
claude mcp add --transport http adtomic https://www.adtomic.co/mcp
Related topics
Inlining and devirtualizationLookup tablesCache locality and data reorderingMultithreading and work stealingLoop unrolling and instruction-level parallelism