well, after reading how internaly Perl solves memory management problems I realised that its extremely fast and there is no need to do anything unless you have to. Perl interpreter have some extremly smart algorithms. For example, Perl does not imediately deletes some data in memory, what it does is marking the memory and variables which will not be used anymore. All variables are linked like in linked lists or trees and when some variable is no longer needed the pointer of previous one points to the variable after the one that is no longer needed. Like that, there is no time consumpion and the process which really deletes those un-needed variable will see that the variable is marked and will alter the pointers.


In reply to Re: Why Thrash Memory? by Alex the Serb
in thread Why Thrash Memory? by Kozz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.