memory overhead using from-import?

William Trenker wtrenker at shaw.ca
Sun Dec 21 21:16:00 CET 2003


Bengt Richter wrote:

> I think to extract an
> "independent" function or class etc. without all the entanglements would
> require source processing, and extracting only what was necessary to support
> the thing to be extracted.

Yes, it looks like you're right.  There was talk, at one time, of being able to import modules from a zip file.  If that was possible then maybe it would be more efficient if all the independent utility functions in the python library were grouped together as a collection of little modules distributed in such a zip file.  Then only the overhead of each small, independent function would be incurred when such a utility function was imported.

Bill





More information about the Python-list mailing list