Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: quick question on modules

by dsheroh (Parson)
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.


Comment on Re: quick question on modules
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016682]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-08-23 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls