Package: src:xxhash
Version: 0.8.0-1
Severity: normal

XXH3 supports various hardware-accelerated variants in
xxh_x86dispatch.{c,h}, which are currently not built into the library.

This means that it only operates at roughly half the speed on my Core
i5-8250U compared to the AVX2-accelerated variant.

The implementation is odd: Client code explcitly has to use the
xxh_x86dispatch.h header instead of the xxhash.h one. It would be more
convenient if any code that includes xxhash.h on x86 automatically
benefits from dispatched optimized code.

At the bare minimum, on x86, export DIGEST=1 when building and install
xxh_x86dispatch.h header. I'd love to see the xxh_x86dispatch.h also
replace the xxhash.h header on x86 (still keeping xxh_x86dispatch.h in
case people look for it) such that clients can directly benefit from it
even if they do not handle looking up that header and using it.

-- System Information:
Debian Release: bullseye/sid
  APT prefers hirsute
  APT policy: (991, 'hirsute'), (500, 'hirsute'), (500, 'groovy-updates'), 
(500, 'groovy-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.8.0-32-generic (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to 
C.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

Reply via email to