Victor Stinner wrote: > Limit the number of suffixes is maybe not the right solution to limit > the number of system calls at startup. We can imagine alternatives: > > * remember the last filename when loading a module and retry this > filename first > * specify that a module is a Python system module and should only be > loaded from "system directories" > * specify the module type (directory, .py file, dynamic library, ...) > when loading a module > * (or a least remember the module type and retry this type first) > * etc. Maybe also * Read and cache the directory contents and search it ourselves instead of making a system call for every possible name. -- Greg
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