[issue23916] module importing performance regression

Antoine Pitrou report at bugs.python.org
Sat Apr 11 22:37:03 CEST 2015


Antoine Pitrou added the comment:

This change is actually an optimization. The directory is only read once and its contents are then cached, which allows for much quicker imports when multiple modules are in the directory (common case of a Python package).

Can you tell us more about your setup?
- how many files are in the directory
- what filesystem is used
- whether the filesystem is local or remote (e.g. network-attached)
- your OS and OS version

Also, how long is "very slowly"?

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list