[issue22557] Local import is too slow

Serhiy Storchaka report at bugs.python.org
Tue Oct 14 14:14:35 CEST 2014


Serhiy Storchaka added the comment:

Yes, my CPU is slow.

Here is a patch which factors out IMPORT_NAME into a separate import_name() function and adds optimization for more general case when __import__ is not overloaded.

----------
Added file: http://bugs.python.org/file36912/faster_import_3.patch

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


More information about the Python-bugs-list mailing list