Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Memory usage of array and hashe variables by multiple inclusion.

by kcott (Chancellor)
on Jul 02, 2013 at 11:25 UTC ( #1041999=note: print w/replies, xml ) Need Help??


in reply to Memory usage of array and hashe variables by multiple inclusion.

G'day tobias_hofer,

"Can modules be loaded several times?"

require says:

require demands that a library file be included if it hasn't already been included.

and use says:

It is exactly equivalent to

BEGIN { require Module; Module->import( LIST ); }

So, assuming you're using use or require to load the modules, the answer's no.

You may find Test::LeakTrace helpful.

-- Ken

Replies are listed 'Best First'.
Re^2: Memory usage of array and hashe variables by multiple inclusion.
by tobias_hofer (Friar) on Jul 02, 2013 at 11:31 UTC
    Hello Ken,

    Thanks a lot!
    So I can exclude this as root-cause of the memory consumption.
    ;-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2018-08-21 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (200 votes). Check out past polls.

    Notices?