Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: quick question on modules

by dsheroh (Prior)
on Feb 02, 2013 at 09:07 UTC ( #1016682=note: print w/replies, xml ) Need Help??

in reply to quick question on modules

An important point alluded to, but never explicitly stated, by the earlier answers: The only difference is in which symbols are aliased into the useing module. All of something::or::other will be compiled and kept in memory regardless of whether you only import funt or import all available symbols1. The memory used to load the module's code will dwarf the memory used to alias the exported symbols into the user's namespace, so it's not going to be a significant difference.

1 If the used module is built around Autoloader/AutoSplit/SelfLoader, this doesn't hold, as they allow the module to only load and compile subs on-demand instead of compiling the whole thing at program start-up. In my experience, though, this isn't done all that often, so it's probably safe to assume that any random module will be loaded in full if used.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016682]
and the monks are chillaxin'...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2018-06-21 15:13 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.