a. Intel 2.8 Ghz Core I7 (dual core, I7-4558U) in late 2013 Macbook Pro with Retina Display b. I compiled it the same way I compiled 1.2.1: ./configure -enable-static -disable-shared CFLAGS=" -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6" make Am i doing something wrong? Thanks, Scott On Fri, Jul 25, 2014 at 12:54 PM, lvqcl <lvqcl.mail at gmail.com> wrote:> Scott Brown wrote: > > > I'm on a Mac and I'm noticing that encoding via the flac command line is > > significantly slower with version 1.3.0 than 1.2.1. I'm encoding a 24/96 > > file to flac, both from wav and aiff and both formats are showing the > same > > speed decrease when using 1.3.0. > > a) What CPU do you have? Intel or PowerPC? > > b) There are no official binaries for 1.3.0. How did you obtain > your flac 1.3.0 encoder? > > > > (I suspect that your CPU was made by Intel and your encoder was built > without NASM...) > _______________________________________________ > flac-dev mailing list > flac-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/flac-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac-dev/attachments/20140725/e3700d7e/attachment.htm
Scott Brown <scottcbrown at gmail.com> ?????(?) ? ????? ?????? Fri, 25 Jul 2014 21:32:50 +0400:> a. Intel 2.8 Ghz Core I7 (dual core, I7-4558U) in late 2013 Macbook Pro > with Retina Display > b. I compiled it the same way I compiled 1.2.1: > > ./configure -enable-static -disable-shared CFLAGS=" -isysroot > /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6" > makeWell... ./configure script creates config.h file. Post its contents here.
lvqcl wrote:> Scott Brown <scottcbrown at gmail.com> ?????(?) ? ????? ?????? Fri, 25 Jul 2014 21:32:50 +0400: > > > a. Intel 2.8 Ghz Core I7 (dual core, I7-4558U) in late 2013 Macbook Pro > > with Retina Display > > b. I compiled it the same way I compiled 1.2.1: > > > > ./configure -enable-static -disable-shared CFLAGS=" -isysroot > > /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6" > > make > > Well... ./configure script creates config.h file. Post its contents here.The configure script also generates config.log which would also be interesting. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
op 25-07-14 19:32, Scott Brown schreef:> ./configure -enable-static -disable-shared CFLAGS=" -isysroot > /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6" > makeWell, the use of CFLAGS 'disables' the -O3 and unroll-loops optimisation. I'm quite sure that's the culprit. Add -O3 to your CFLAGS and it should be fixed. See the following lines in the configure script> if test "x$user_cflags" = x; then > CFLAGS="-O3 -funroll-loops -Wall -W -Winline" > fiMaybe we should change this 'overriding' behaviour of CFLAGS and add -O3 just like most other options are added to the CFLAGS?
Martijn van Beurden wrote:> op 25-07-14 19:32, Scott Brown schreef: > > ./configure -enable-static -disable-shared CFLAGS=" -isysroot > > /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6" > > make > > Well, the use of CFLAGS 'disables' the -O3 and unroll-loops > optimisation. I'm quite sure that's the culprit. Add -O3 to your > CFLAGS and it should be fixed. > > See the following lines in the configure script > > > if test "x$user_cflags" = x; then > > CFLAGS="-O3 -funroll-loops -Wall -W -Winline" > > fi > > Maybe we should change this 'overriding' behaviour of CFLAGS and > add -O3 just like most other options are added to the CFLAGS?Wow, I didn't even know that was there. I have now replaced the above with: CFLAGS="-O3 -funroll-loops -Wall -W -Winline $CFLAGS" so CFLAGS are preserved and enforce optimisations. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
Adding -O3 now has these results: 51.81 seconds for the file that took 222 seconds without -O3. So that was it. Thank you! Scott On Sat, Jul 26, 2014 at 3:47 AM, Martijn van Beurden <mvanb1 at gmail.com> wrote:> op 25-07-14 19:32, Scott Brown schreef: > > ./configure -enable-static -disable-shared CFLAGS=" -isysroot > > /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6" > > make > > Well, the use of CFLAGS 'disables' the -O3 and unroll-loops > optimisation. I'm quite sure that's the culprit. Add -O3 to your > CFLAGS and it should be fixed. > > See the following lines in the configure script > > > if test "x$user_cflags" = x; then > > CFLAGS="-O3 -funroll-loops -Wall -W -Winline" > > fi > > Maybe we should change this 'overriding' behaviour of CFLAGS and > add -O3 just like most other options are added to the CFLAGS? > > _______________________________________________ > flac-dev mailing list > flac-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/flac-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac-dev/attachments/20140727/43302f89/attachment.htm