New submission from Brett Cannon:

With os.scandir() now committed and implemented in C, it would be interesting 
to see if os.scandir() could provide any performance benefit to importlib. If 
finders can pass the DirEntry to loaders then some stat calls could potentially 
be saved at the expense of stale file metadata.

Even if the performance is flat and the sharing of cached information is deemed 
not worth it, os.scandir() might still be beneficial by ditching some custom 
code in importlib that exists purely to replicate Python code from os.py, like 
_path_isfile().

----------
assignee: brett.cannon
components: Interpreter Core
messages: 237771
nosy: brett.cannon
priority: low
severity: normal
stage: needs patch
status: open
title: See if os.scandir() could help speed up importlib
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23628>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to