News for hackers. Stuff that matters.
Re:Vectorized and performance-portable Quicksort by jonstewart on Sunday June 05, 2022 @01:48PM (#31633233)
I started reading through Highway docs, and maybe I missed something, but I’m surprised it’s a built library to be linked against, instead of a header-only library —- at least when using static targeting. If using static targeting, wouldn’t function call overhead be severe, or are a lot of implementations in the headers?
Re:Vectorized and performance-portable Quicksort by janwas on Sunday June 05, 2022 @02:47PM (#31633749)
Good question. There are only a few functions implemented in .cc files, tagged with HWY_DLLEXPORT, notably memory allocation and detecting x86 CPU capabilities. If it were necessary, we could likely strip those out or do a header-only library. The ops/intrinsics called from user code are inlined in headers.
Re:Vectorized and performance-portable Quicksort by jonstewart on Sunday June 05, 2022 @05:50PM (#31635159)
Got it, thank you!