A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-July/135553.html below:

[Python-Dev] Remaining decisions on PEP 471 -- os.scandir()

[Python-Dev] Remaining decisions on PEP 471 -- os.scandir() [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()Antoine Pitrou antoine at python.org
Mon Jul 21 01:45:28 CEST 2014
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.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4