[MPlayer-users] does debug compile affect performance?

D Richard Felker III dalias at aerifal.cx
Mon Sep 8 01:10:48 CEST 2003

On Sat, Sep 06, 2003 at 08:03:46PM +0400, Vladimir Mosgalin wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 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.

Have you confirmed this in practice? From my experience, programs
compiled with -g always have significantly larger RSS...


More information about the MPlayer-users mailing list