[issue39298] add BLAKE3 to hashlib

Larry Hastings report at bugs.python.org
Wed Mar 23 15:19:19 EDT 2022


Larry Hastings <larry at hastings.org> added the comment:

I can't answer why the Rust one is so much larger--that's a question for Jack.  But the blake3-py you built might (should?) have support for SIMD extensions.  See the setup.py for how that works; it appears to at least try to use the SIMD extensions on x86 POSIX (32- and 64-bit), x86_64 Windows, and 64-bit ARM POSIX.

If you were really curious, you could run some quick benchmarks, then hack your local setup.py to not attempt adding support for those (see "portable code only" in setup.py) and do a build, and run your benchmarks again.  If BLAKE3 got a lot slower, yup, you (initially) built it with SIMD extension support.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39298>
_______________________________________


More information about the Python-bugs-list mailing list