Le 20/07/2014 17:34, Ben Hoyt a écrit :
Have you tried modifying importlib's _bootstrap.py to use scandir() instead
of listdir() + stat()?
No, I haven't -- I'm not familiar with that code. What does
_bootstrap.py do -- does it do a lot of listdir calls and stat-ing of
many files?
Quite a bit, although that should be dampened in recent 3.x versions,
thanks to the caching of directory contents.
Even though there is tangible performance improvement from scandir(), it
would be useful to find out if the API fits well.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com