Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: memory "release" with $#=-1

by waswas-fng (Curate)
on Jun 28, 2005 at 19:22 UTC ( #470774=note: print w/ replies, xml ) Need Help??


in reply to Re^3: memory "release" with $#=-1
in thread memory "release" with $#=-1

One note though, if you create the array peicemail over time, then you may have smaller portions of memory allocated for the array that are not contiguous. In that case freeing the array and making a new array may not use the freed memory if the new array has larger malloc needs then the freed memory has contiguous memory segments.



-Waswas


Comment on Re^4: memory "release" with $#=-1
Replies are listed 'Best First'.
Re^5: memory "release" with $#=-1
by BUU (Prior) on Jun 28, 2005 at 19:31 UTC
    I'm pretty sure perl arrays always take up a contiguous region of memory, at least for the actual "array" part. Then again, it's just an array of pointers to SV's anyways, so I'm not sure it matters.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-08-04 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (62 votes), past polls