Bug ID | 1038906 |
---|---|
Summary | python import hashlib is slow |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | Other |
OS | openSUSE 13.2 |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Other |
Assignee | vcizek@suse.com |
Reporter | bwiedemann@suse.com |
QA Contact | qa-bugs@suse.de |
CC | jmatejek@suse.com |
Found By | Development |
Blocker | --- |
Reproducible: Always Steps To Reproduce: time python -c 'import hashlib' ; time python -c '' Actual Results: real 0m0.062s user 0m0.052s sys 0m0.008s real 0m0.024s user 0m0.012s sys 0m0.008s I had filed https://bugs.python.org/issue30276 about this, but it turned out that on Debian (openssl-1.0.1t) and Fedora, import hashlib just adds 3ms so there is something SUSE specific happening here, slowing it by a factor of 10. It seems SLE-11 and SLE-12-SP1 are also not affected, but SLE-12-SP2 is affected, though both have python-2.7.13 but there is a difference in openssl-1.0.1i-54.5.1.x86_64 openssl-1.0.2j-59.1.x86_64 so it might be related to the openssl-1.0.2 doing slower stuff on init e.g. in https://github.com/python/cpython/blob/82a638473315861e0eeaf8d367a905a5f5b06f7d/Modules/_hashopenssl.c#L1002