[issue14043] Speed-up importlib's _FileFinder
Antoine Pitrou
report at bugs.python.org
Fri Feb 17 18:13:53 CET 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
Note that the cost of filling the cache itself isn't trivial:
$ ./python -m timeit -s "import sys; from importlib import _bootstrap" "_bootstrap._file_path_hook('Lib')._fill_cache()"
1000 loops, best of 3: 1.88 msec per loop
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14043>
_______________________________________
More information about the Python-bugs-list
mailing list