in reply to Release memory in hash of hashes
In all likelihood, if your data is of a size where you need to be worried about freeing the memory, you'd be better off to investigate other ways of storing it, such as a database, that don't require it to all be in memory at once. Maybe if you explain the reason you are worried about memory consumption to us, we could understand what you're trying to do better and perhaps suggest a better alternative.
Getting away from trying to micromanage memory allocation is one of the principal advantages of modern scripting languages--why exactly are you trying to out-think the compiler?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Release memory in hash of hashes
by vit (Friar) on Aug 17, 2009 at 15:30 UTC | |
by GrandFather (Saint) on Aug 18, 2009 at 00:37 UTC | |
by ig (Vicar) on Aug 18, 2009 at 00:53 UTC |