Message415920
> Performance wise... The SHA series have hardware acceleration on
> modern CPUs and SoCs. External libraries such as OpenSSL are in a
> position to provide implementations that make use of that. Same with
> the Linux Kernel CryptoAPI (https://bugs.python.org/issue47102).
>
> Hardware accelerated SHAs are likely faster than blake3 single core.
> And certainly more efficient in terms of watt-secs/byte.
I don't know if OpenSSL currently uses the Intel SHA1 extensions.
A quick google suggests they added support in 2017. And:
* I'm using a recent CPU that AFAICT supports those extensions.
(AMD 5950X)
* My Python build with BLAKE3 support is using the OpenSSL implementation
of SHA1 (_hashlib.openssl_sha1), which I believe is using the OpenSSL
provided by the OS. (I haven't built my own OpenSSL or anything.)
* I'm using a recent operating system release (Pop!_OS 21.10), which
currently has OpenSSL version 1.1.1l-1ubuntu1.1 installed.
* My Python build with BLAKE3 doesn't support multithreaded hashing.
* In that Python build, BLAKE3 is roughly twice as fast as SHA1 for
non-trivial workloads. |
|
Date |
User |
Action |
Args |
2022-03-24 01:28:31 | larry | set | recipients:
+ larry, lemburg, gregory.p.smith, christian.heimes, mgorny, Zooko.Wilcox-O'Hearn, jstasiak, oconnor663, corona10, xtreak, kmaork |
2022-03-24 01:28:31 | larry | set | messageid: <1648085311.33.0.231276156449.issue39298@roundup.psfhosted.org> |
2022-03-24 01:28:31 | larry | link | issue39298 messages |
2022-03-24 01:28:30 | larry | create | |
|