Menu
Sign In Search Podcasts Libraries Charts People & Topics Add Podcast API Blog Pricing

Kieran Kunhya

πŸ‘€ Speaker
1922 total appearances

Appearances Over Time

Podcast Appearances

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

And like, it's not even close, right?

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

It's not even close, right?

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

It's not like 5%, 10% slower.

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

It's multiple times slower.

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

Philosophically, what's important to realize is that we passed the time where hardware was going so much faster, right?

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

We had the end of the Moore law.

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

We have limitation for AI, for memory.

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

You need to go down in the stack and optimize more to get more power from what you have because our requests for power, CPU power, GPU power are exploding while the hardware is not exploding in time.

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

speed, right?

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

So what people do is that they add more calls, right?

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

But that's basically like at some point you can have 250 calls, right?

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

So what we do is to take every inch of the machine.

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

And one of the other things that we do, for example, in David, which is a bit crazy, is that we don't use the function calling convention from the operating system.

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

That is extremely complex.

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

But basically, usually when you do move from one function in code to another, there is a way to save the registry, the state of the CPU to enter another function.

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

And this is like standard.

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

Yes, and in all that, we don't even respect the calling convention of the operating system in order to be faster, because we know that we are going to be called from within our binary.

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

So we can share data without saving all the registry in the common way, because that can lead to loading and saving registry on the L1 and L2 CPU and gets us faster.

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

So that's why I said that understanding

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

CPU architecture, computer architecture is key.