in reply to Timing of garbage collection
Once Perl has memory from the OS, it has it forever.
A long-lived Perl app will reach a maximum memory usage and just stay at that number forever (provided no memory leaks).
If you un-define an object ref: $obj_a = undef;
Or say $obj_a = Method_X->new(...), reuse/reassign an object ref that has the same effect as long as no reference to an in internal structure within obj_a is in existence.
Perl has its own memory management and reuses memory when it can.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Timing of garbage collection
by eyepopslikeamosquito (Archbishop) on Jan 19, 2013 at 01:17 UTC | |
|
Re^2: Timing of garbage collection
by BrowserUk (Patriarch) on Jan 19, 2013 at 00:41 UTC | |
by Marshall (Canon) on Jan 19, 2013 at 05:07 UTC | |
by zwon (Abbot) on Jan 19, 2013 at 06:00 UTC | |
by flexvault (Monsignor) on Jan 19, 2013 at 15:08 UTC | |
by BrowserUk (Patriarch) on Jan 19, 2013 at 05:21 UTC | |
by Marshall (Canon) on Jan 19, 2013 at 06:40 UTC | |
by BrowserUk (Patriarch) on Jan 19, 2013 at 17:21 UTC | |
|