<div dir="ltr"><div dir="ltr">I got the latest from git and compiled it. the output from config looks like this:<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 : ...................... no<br>    Asm optimizations : ....................... yes<br>    Ogg/FLAC support : ........................ no<br>    Stack protector  : ........................ no<br>    Fuzzing support (Clang only) : ............ no<br><br></div><div><br></div><div>note: Asm optimizations are ON with this vs the release version from feb</div><div><br></div><div>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).</div><div>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)</div><div><br></div><div>Again, I'm on an M1 Max MacBook Pro</div><div><br></div><div>So it looks like the latest code is slower all around compared to the February released version of 1.3.4. Are there some compilation flags I should be setting that I may be missing?</div><div><br></div><div>My fastest encode is still the released 1.3.4 intel version through emulation. </div><div>Note, configure shows that Asm optimizations are NOT on for the feb release version:</div><div><br></div><div>Configuration summary :<br><br>    FLAC version : ............................ 1.3.4<br><br>    Host CPU : ................................ arm<br>    Host Vendor : ............................. apple<br>    Host OS : ................................. darwin21.5.0<br><br>    Compiler is GCC : ......................... no<br>    Compiler is Clang : ....................... yes<br>    SSE optimizations : ....................... yes<br>    Asm optimizations : ....................... no<br>    Ogg/FLAC support : ........................ no<br>    Stack protector  : ........................ no<br>    Fuzzing support (Clang only) : ............ no<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 6, 2022 at 1:17 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"><div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_attr">Op wo 6 jul. 2022 om 18:34 schreef Scott Brown <<a href="mailto:scottcbrown@gmail.com" target="_blank">scottcbrown@gmail.com</a>>:<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"><div dir="ltr">Martijn
 filled me in that recent changes (since the official 1.3.4 source) have
 added ARM improvements, and that if I get the most recent code, I 
should be good.</div></blockquote></div><div><br></div><div>Huh, I have no clue why my mailing program decided replies to this shouldn't go through the mailing list, but it did and I didn't notice.</div><div><br></div><div>Anyway, Apple's x86-64 to arm64 translation uses FLACs routines with SSE intrinsics and is able to translate them into corresponding NEON code. When compiling FLAC from source, the compiler isn't able to create these NEON routines, at least not with the same efficiency as the NEON translated from SSE. Since FLAC 1.3.4, NEON intrinsics powered routines have been added to FLAC.</div><div><br></div><div>Kind regards,</div><div><br></div><div>Martijn van Beurden<br></div></div><br><div class="gmail_quote"><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"><div dir="ltr"><div></div><div>(I can't get the most recent code to compile, but that's a different story I suppose)</div></div></blockquote><div><br></div><div>If you suspect that compilation doesn't succeed because of some issue with the FLAC code, please let me know.<br></div></div></div>
</blockquote></div></div>