xxhash
xxhsumwas benchmarked usingxxhsum --benchmark-all -i10-DLIBXXH_DISPATCH=1increases size, decreases performance by 2x and requires an explicit include ofxxh_x86dispatch.h-DXXH_FORCE_MEMORY_ACCESS=1forces agccism that does nothing on modern compilers (openbsduses it by default)-DXXH_INLINE_ALL=1breaks the build- Default
CFLAGSuse-O3which result in the best performance/size ratio withclang(gcc’s-O3is bloated, use-O2instead) -Osregresses by at least 2-3x withclangeven when-DXXH_NO_INLINE_HINTS=0 -DXXH_SIZE_OPT=0(gcc’s-Osis closer to-O2)- No safe way to pass
LDFLAGS - Pass
PREFIXandDISPATCH=1(for SSE/AVX onx86-64) to check and install targets as they are not detected in the Makefile
Package
Section titled “Package”xxh3.his no longer useful and will be removed in0.9.0