in reply to Re: Modules that do Less
in thread Modules that do Less

A very good point, and perhaps this speaks to an area of weakness in my Perl knowledge. Extrapolating to a more general scenario:

There's a module that I'd like to use. It does everything under the sun for a particular area of expertise. I want to use three of its functions, and export only those. Do I or do I not get a penalty in terms of memory/compile speed for having to load the rest of the module into memory at compile time? Even if only those three functions are imported into my name space?

Replies are listed 'Best First'.
(tye)Re: Modules that do Less
by tye (Sage) on Jun 12, 2001 at 20:24 UTC

    If the module uses AutoLoading or SelfLoading or something similar, than the cost is nearly zero. If the module doesn't, then you might want to patch it so that it does and submit the patch to the author. Large modules should do this for the reasons you give.

            - tye (but my friends call me "Tye")