Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re5: Tracking Memory Leaks

by bikeNomad (Priest)
on Aug 15, 2001 at 21:07 UTC ( #105103=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Tracking Memory Leaks
in thread Tracking Memory Leaks

I don't know what exactly dragonchild was referring to, except that if you create methods or classes on the fly, that's going to consume memory. No more so than if you'd put the same definitions in a .pm file and use'd it, though. I don't think AUTOLOAD or eval("string") themselves leak memory. And I don't know what "compile time optimizations" he was referring to; eval is as much compile time as what you get when you load your main program or use/require'd modules.


Comment on Re5: Tracking Memory Leaks
Re6: Tracking Memory Leaks
by dragonchild (Archbishop) on Aug 15, 2001 at 21:51 UTC
    With regards to the interpreter knowing when a lexical is no longer used ... I have no idea. Anyone know?

    With regards to the memory consumption of classes/methods created on the fly ... I thought that it would use more RAM. However, I didn't test it, so I don't know. It would be an interesting thing to benchmark. I would think that it would take more CPU, though. However, I don't know for sure. It's more of a hunch that anything else.

    ------
    /me wants to be the brightest bulb in the chandelier!

    Vote paco for President!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-09-18 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (124 votes), past polls