[issue22557] Local import is too slow
Serhiy Storchaka
report at bugs.python.org
Mon Jun 27 16:18:57 EDT 2016
Serhiy Storchaka added the comment:
faster_import_pkg.patch optimizes also an import of names with dots.
$ ./python -m timeit 'import os.path'
Unpatched: 100000 loops, best of 3: 2.08 usec per loop
faster_import_5.patch: 1000000 loops, best of 3: 1.79 usec per loop
faster_import_pkg.patch: 1000000 loops, best of 3: 0.474 usec per loop
----------
Added file: http://bugs.python.org/file43567/faster_import_pkg.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22557>
_______________________________________
More information about the Python-bugs-list
mailing list