[MPlayer-users] does debug compile affect performance?

Corey Hickey bugfood-ml at fatooh.org
Sat Sep 6 19:30:19 CEST 2003


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.
> 

Ok, good. I was hoping it would be something like that. Having a larger
binary doesn't bother me, so I guess I'll always build with debug
enabled so I don't have to recompile when I want to bugreport a crash.

Thanks again,
Corey



More information about the MPlayer-users mailing list