← All stories
AI & Tech

Handwritten Assembly Code Delivers 62x Performance Over Modern C Compilers

Lex Fridman Podcast · #496 – FFmpeg: The Incredible Technology Behind Video on the Internet · May 8, 2026
Handwritten Assembly Code Delivers 62x Performance Over Modern C Compilers
Lex Fridman Podcast
Lex Fridman Podcast
#496 – FFmpeg: The Incredible Technology Behind Video on the Internet
"The way I would look at it personally is a little bit like the padlock on your home. Not everyone, the padlock on your home or, you know, the lock on your home is there to protect against the capabilities of what it's there to protect. It's not there to protect nuclear secrets. It's not there to protect Fort Knox."
The FFmpeg team demonstrated that manually optimized assembly code can outperform C by 62 times in real-world video processing scenarios. The dav1d AV1 decoder contains 240,000 lines of handwritten assembly across multiple architectures, challenging the prevailing assumption that modern compilers can match human optimization. This approach powers billions of devices decoding video in software.
More stories More from Lex Fridman Podcast