Data Oriented Design: Machine Learning One Million Times Faster
summary
Shows a concrete refactor of leave‑one‑out linear regression that turns a 14,000 second baseline into ~18 milliseconds — roughly a millionfold speedup by reusing global sums instead of recomputing per‑leave‑out fit. Implements contiguous structures‑of‑arrays and a small DR³ vector framework with vectorized vex objects and transform‑reduce style ops, solves closed‑form betas in bulk, and reports the fast implementation runs correctly and reproducibly on real data.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:15Data Oriented Design basics
- 5:07Beyond micro-optimizations
- 8:35Hardware challenges
- 12:03Memory access patterns
- 18:20Contiguous data power
- 23:42Vectorized instructions
- 30:09Compile-time precomputation
- 33:23George Polya's problem solving
- 41:14Leave-one-out regression case
- 55:54Key takeaways and summary
