<div dir="ltr">Ok, so the latest being slower on both builds at level 8 than the Released 1.3.4 makes sense with recent compression improvements. Thanks. I was using level 8 for all tests.<div><br></div><div>As for the Neon optimizations, it seems that if I configure for Universal binary ( -arch arm64 -arch x86_64),the neon optimizations are not on. If I configure for just arm64, they are on:</div><div><br></div><div> Configuration summary :<br><br> FLAC version : ............................ 1.3.4<br><br> Host CPU : ................................ aarch64<br> Host Vendor : ............................. apple<br> Host OS : ................................. darwin21.5.0<br><br> Version string : reference libFLAC git-7e0a0e57 20220701<br><br> Compiler is GCC : ......................... no<br> Compiler is Clang : ....................... yes<br> SSE optimizations : ....................... yes<br> Neon optimizations : ...................... yes<br> Asm optimizations : ....................... yes<br> Ogg/FLAC support : ........................ no<br> Stack protector : ........................ no<br> Fuzzing support (Clang only) : ............ no<br></div><div><br></div><div>However, make fails after this. If i configure for both architectures, "make" succeeds, but no neon optimization. </div><div><br></div><div>Configure for just arm64 gives neon optimizations, but "make" gives a bunch of cputype errors:</div><div><br></div><div>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(bitmath.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(bitreader.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(bitwriter.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(cpu.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(crc.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(fixed.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(fixed_intrin_sse2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(fixed_intrin_ssse3.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(float.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(format.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_avx2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_neon.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_sse2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_sse41.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_vsx.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(md5.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(memory.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(metadata_iterators.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(metadata_object.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lt1-stream_decoder.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lt2-stream_encoder.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(stream_encoder_framing.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(stream_encoder_intrin_avx2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(stream_encoder_intrin_sse2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(stream_encoder_intrin_ssse3.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(window.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(bitmath.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(bitreader.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(bitwriter.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(cpu.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(crc.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(fixed.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(fixed_intrin_sse2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(fixed_intrin_ssse3.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(float.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(format.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_avx2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_neon.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_sse2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_sse41.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lpc_intrin_vsx.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(md5.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(memory.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(metadata_iterators.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(metadata_object.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lt1-stream_decoder.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(lt2-stream_encoder.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(stream_encoder_framing.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(stream_encoder_intrin_avx2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(stream_encoder_intrin_sse2.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(stream_encoder_intrin_ssse3.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>/Library/Developer/CommandLineTools/usr/bin/ranlib: archive member: .libs/libFLAC++-static.a(window.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match)<br>make[3]: *** [Makefile:521: libFLAC++-<a href="http://static.la">static.la</a>] Error 1<br>make[3]: Leaving directory '/Documents/GitHub/flac/src/libFLAC++'<br>make[2]: *** [Makefile:438: all-recursive] Error 1<br>make[2]: Leaving directory '/Documents/GitHub/flac/src'<br>make[1]: *** [Makefile:508: all-recursive] Error 1<br>make[1]: Leaving directory '/Documents/GitHub/flac'<br>make: *** [Makefile:440: all] Error 2<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 6, 2022 at 2:59 PM Martijn van Beurden <<a href="mailto:mvanb1@gmail.com">mvanb1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Op wo 6 jul. 2022 om 20:45 schreef Scott Brown <<a href="mailto:scottcbrown@gmail.com" target="_blank">scottcbrown@gmail.com</a>>:<br>
> Neon optimizations : ...................... no<br>
<br>
It seems for some reason NEON is not enabled by configure. Can you<br>
provide the config.log file so I can check what goes wrong?<br>
<br>
> But this version is even *slower* than the released 1.3.4. Running the native arm build from the latest code took 3:54 (3 minutes, 54 seconds) (3:10 on the released 1.3.4 code).<br>
> Compiling for intel from the latest code, the intel build through emulation took 3:02 (1:50 on the released 1.3.4 intel build)<br>
<br>
If you did the timing with the highest presets (-6, -7 or -8) most of<br>
this slowdown is caused by recent improvement in compression at the<br>
cost of encoding speed. See <a href="https://github.com/xiph/flac/pull/245" rel="noreferrer" target="_blank">https://github.com/xiph/flac/pull/245</a><br>
</blockquote></div>