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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com