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

Re: Memory reusability

by busunsl (Vicar)
on Aug 12, 2009 at 05:58 UTC ( [id://787843]=note: print w/replies, xml ) Need Help??


in reply to Memory reusability

Perl does support reuse of memory, but:

The perl binary aquires memory for the perl program but this memory is never released to the operating system as long as the perl program runs.

So inside a running program the memory is reused but never freed.

Replies are listed 'Best First'.
Re^2: Memory reusability
by abubacker (Pilgrim) on Aug 12, 2009 at 06:07 UTC

    Dear busunl ,
    Do you meant to say that each perl program will consume their required memory when it starts ?
    One more question is whether it acquires more memory during run time

      It does not acquire all memory when it starts.

      It will get more memory during runtime when needed.

      There are two major points in perl memory management:

      1. You don't have to bother, perl will do that for you
      2. Memory will not be freed during runtime

      That's all.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-19 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found