[flac-dev] [Flac-dev] Git branch with compiling fixes for win32

Cristian Rodríguez crrodriguez at opensuse.org
Mon May 7 11:18:15 PDT 2012


El 07/05/12 13:37, Miroslav Lichvar escribió:
> On Mon, May 07, 2012 at 09:19:52PM +0400, LRN wrote:
>>> In a test on a Core 2 machine with gcc-4.6.3, i686 flac build with
>>> nasm enabled is about 7% faster in decoding than without nasm.
>>> x86_64 build is about 2% faster than the i686 build with nasm
>>> enabled.
>>>
>> Was that with -O2 or -O3?
>
> Not sure, I didn't set CFLAGS which seems to result in using both:
> -O3 -funroll-loops -Wall -W -Winline -g -O2
>
> I think funroll-loops can be harmful, the Fedora package is compiled
> with -O2 and funroll-loops is used only for the stream_encoder file
> and it seems decoding is a tiny bit faster than with the git version.
> Unfortunately I don't recall the details.
>
> On Mon, May 07, 2012 at 01:23:03PM -0400, Cristian Rodríguez wrote:
>> Did you build with -fprofile-generate ... then make check .. then
>> rebuild with -fprofile-use ?
>
> No, I have not tried that.
>

Yes, -funroll-loops might cause code growth and/or make binaries 
actually slower...

BTW, just wondering, how are you measuring the speed in this tests ? I 
would be interested to know so I can reproduce it here with different 
compile/link options


More information about the flac-dev mailing list