Special Interest Group: Import redesign
gmcm at hypernet.com
Fri Feb 11 10:52:12 EST 2000
Rob W. W. Hooft wrote:
> >>>>> "GM" == Gordon McMillan <gmcm at hypernet.com> writes:
> GM> As a result of the Developer's Day session on Import Uitilities,
> GM> a new SIG (the import-SIG) has been formed. The goal is a new
> GM> architecture for the import facility in Python.
> Will this address the O(N**2) problem of locating large numbers of
> modules in lots of package directories?
> devel~%% strace ndisp ambi/s01f001.kcd |& grep -c open
Yup. With the (prototype) imputil.py and archives, you can
reduce this to linear in the number of packages, (actually
archives, but 1 package per archive seems a sensible way to
On my Linux box, using the RH style configuration
(*everything* is shared), I reduced the number of opens on
startup (for a trivial script) from 107 to 9 using imputil, archives
and a tweaked getpath.c (that just finds a "boot" path, instead
of a full-blown one).
More information about the Python-list