[issue14043] Speed-up importlib's _FileFinder

Antoine Pitrou report at bugs.python.org
Fri Feb 17 23:36:32 CET 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> The lastest patch (listdir_cache2) LGTM. Have you by any chance
> patched it in and run ./python -m importlib.test.regrtest (runs the
> entire test suite with builtins.__import__() substituted with
> importlib.__import__())?

There are a couple of test failures (in test_import, test_runpy,
test_reprlib). Apparently this is due to false positives when comparing
directory modification times. If I sleep() enough between tests, the
failures disappear...
I wonder if this could be a problem in real-life (say, someone compiling
some DSL to Python code on-the-fly and expecting import to pick up
without any timestamp problems).

----------

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


More information about the Python-bugs-list mailing list