Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderThe use of previous branch history and branch address as a "context" for prediction reminds me of the very similar technique used for prediction in arithmetic compression as used in e.g. JBIG2, JPEG2000, etc. --- the goal being that, if an event X happens several times in context C, then whenever context C occurs, the probability of X is more likely. Also, since modern CPUs internally have many functional units to which operations can be dispatched, I wonder if, in…
One fun thing to note is that the author doesn’t really talk a lot about anything from this decade, which makes sense considering how much complexity was being added for the tiny improvements towards the end. Modern branch predictors are quite complicated so they can eke out improvements in accuracy by fractions of a percent.
>We also didn’t talk at all about how different workloads affect different branch predictors. Predictor performance varies not only based on table size but also based on which particular program is run. One of my favorite little tradeoffs around this topic is around power usage. This is because, in many cases, adding more hardware (generally) increases total power usage. I.e. adding more execution units makes the processor faster at the expense of increased power usage. Good branch predictors, however, are…
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 2
- Total points
- 527
- Total comments
- 101
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2017-08-23 | A history of branch predictionFirst breakout · Best thread | darwhy | 300 | 65 |
| 2019-05-09 | Branch Prediction | nuriaion | 18 | 0 |
| 2019-07-01 | How and why CPUs do “branch prediction” (2017)Latest 20+ point return | majke | 192 | 33 |
| 2021-05-24 | Branch Prediction | pta2002 | 1 | 0 |
| 2022-02-14 | Branch Prediction | ibobev | 5 | 0 |
| 2022-12-28 | Branch Prediction | ibobev | 2 | 0 |
| 2022-12-31 | CPU branch prediction evolution over years | Keyframe | 6 | 2 |
| 2024-07-29 | Branch Prediction (2017) | tambourine_man | 1 | 0 |
| 2026-03-15 | Branch Prediction | birdculture | 2 | 1 |
