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
mentioned this pull request
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.
tiran
mentioned this pull request
gut
deleted the
improve-POWER8-performance-on-libssl
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters