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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22557>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to