Mailinglist Archive: opensuse-bugs (4295 mails)

< Previous Next >
[Bug 1038906] New: python import hashlib is slow
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 12 May 2017 15:28:34 +0000
  • Message-id: <bug-1038906-21960@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1038906


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@xxxxxxxx
Reporter: bwiedemann@xxxxxxxx
QA Contact: qa-bugs@xxxxxxx
CC: jmatejek@xxxxxxxx
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

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
Follow Ups