branch-prediction

Tag

Cards List
#branch-prediction

6× faster binary search: from compiled code to mechanical sympathy

Lobsters Hottest ↗ · 2026-07-14 Cached

This article details a series of low-level optimizations for binary search in Rust, achieving a 6x speedup by leveraging CPU architecture features like branch prediction and SIMD, applied to a scikit-learn gradient boosting use case.

0 favorites 0 likes
#branch-prediction

Quadrupling code performance with a "useless" if

Lobsters Hottest ↗ · 2026-07-13 Cached

A blog post demonstrates how adding a conditional check that appears useless can dramatically improve loop performance by allowing the CPU's branch predictor to eliminate data dependencies, achieving up to 4x speedup in a specific compression algorithm.

0 favorites 0 likes
#branch-prediction

@_avichawla: Anthropic. Google. Meta. Everyone's using an idea from the 1990s to run LLM inference 2-3x faster. In the 1990s, CPU de…

X AI KOLs Timeline ↗ · 2026-05-26 Cached

Speculative decoding, inspired by 1990s CPU branch prediction, is now used by Anthropic, Google, and Meta to speed up LLM inference 2-3x. It uses a small model to guess future tokens and a large model to verify them in parallel, avoiding idle GPU time during decoding.

0 favorites 0 likes
← Back to home

Submit Feedback