[issue30276] import hashlib makes many programs slow

Bernhard M. Wiedemann report at bugs.python.org
Fri May 5 08:18:11 EDT 2017


Bernhard M. Wiedemann added the comment:

I'm running openSUSE Tumbleweed with python-2.7.13 and python3-3.6.1
on an Intel Pentium N3530 with linux-4.10.12
There the total time of the "import _hashlib" oneliner varies between 100 and 250 ms (python3 is a bit slower and the machine is slower when running on battery)

the urandom calls themselves are not slow, but probably the processing in between. Can't that be done on demand on first use?

This is (one minor part of) slowing down python CLI tools like OpenStack's
cinder help

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30276>
_______________________________________


More information about the Python-bugs-list mailing list