← 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.
From this episode
Lex Fridman Podcast
Lex Fridman Podcast

#496 – FFmpeg: The Incredible Technology Behind Video on the Internet

August 3, 2026 · 5 Egleze moments
Read episode summary and key points →

More moments from this episode

AI & TechTeenage Engineers Contribute More Assembly Code Than Google Security ResearchersEspionageCIA Modified VLC Media Player to Spy on Users Via WikiLeaks RevelationAI & TechFFmpeg Runs on Mars Rover Proving Open Source Powers Multi-Planetary TechnologyAI & TechVLC Creator Rejected Tens of Millions in Ads to Keep Software Free
More stories More from Lex Fridman Podcast