◐ Shell
clean mode source ↗

bpo-30102: Improve libssl performance on POWER8 for, e.g sha256 by gut · Pull Request #1181 · python/cpython

To correctly pick the best algorithm for the current architecture,
libssl needs to have OPENSSL_config(NULL) called as described on:
https://wiki.openssl.org/index.php/Libcrypto_API

This short change lead to a speedup of 50% on POWER8 when using
hashlib.sha256 digest functionality as it now uses a SIMD approach that
was already existing but not used by cpython.

@alex alex mentioned this pull request

Apr 19, 2017

vstinner

Both solutions lead to a performance improvement on POWER8 when using
sha digest
Replace ENGINE_load_builtin_engines to OPENSSL_cpuid_setup. It leads to
the performance gain on hashing on POWER8 platform.

I don't like the explicit function declaration but I didn't find it on
OpenSSL headers.

vstinner

tiran

@tiran tiran mentioned this pull request

Aug 16, 2017

@gut gut deleted the improve-POWER8-performance-on-libssl branch

September 5, 2017 12:18