A smarter(?) package importer.

Michael Hudson mwh at python.net
Wed Nov 7 09:08:14 EST 2001


Prabhu Ramachandran <prabhu at aero.iitm.ernet.in> writes:

> >>>>> "GMcM" == Gordon McMillan <gmcm at hypernet.com> writes:
> 
>     GMcM> But sys.modules is a dictionary. It's hashed, not scanned.
> 
> Indeed but doesn't the length of the table matter for performance?

Not significantly, no.

Cheers,
M.

-- 
  That's why the smartest companies use Common Lisp, but lie about it
  so all their competitors think Lisp is slow and C++ is fast.  (This
  rumor has, however, gotten a little out of hand. :)
                                        -- Erik Naggum, comp.lang.lisp



More information about the Python-list mailing list