[MPlayer-users] does debug compile affect performance?

Vladimir Mosgalin mosgalin at VM10124.spb.edu
Sat Sep 6 18:03:46 CEST 2003


On Sat, 6 Sep 2003, Magnus Damm wrote:

MD>[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
MD>
MD>> In other words, there may be small slowdowns when using --enable-debug.
MD>> With =2 or =3 only size increases and more debug information is added,
MD>> speed should remain the same.
MD>
MD>OTOH, larger binary results in a larger cache footprint.
MD>And larger cache footprint might lead to slowdowns.

No. Debug information generates larger binary, but it's separated
inside the binary file, and when you don't run debugger, it isn't loaded
at all. In linux, when you run some file, its code isn't just loaded to
memory; instead, kernel mmaps it. And when no one access debug code,
kernel doesn't even touch it.

-- 

Vladimir



More information about the MPlayer-users mailing list