Yeah, you right. Thanks for explanation!

About memory limit... to be fair enough, I just copy this word from `perldoc less` and add parameter for fun - I don't mean something special here. But ability to limit memory sometimes very good idea. I don't mean perl optimizations here or OS limits like `setrlimit` (because as far as I know it's impossible to handle these limits - OS just kill the process).

All you know what perl eat a lot of memory - it trade memory for speed. But user's script sometimes also trade memory for speed. All sort of caches do this. And I think it's a good to know inside script what it reach some memory limits. In this case user can set callback routine or signal handler which will empty caches, flush buffers, etc.


In reply to Re: Re: use less 'CPU' by powerman
in thread use less 'CPU' by powerman

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.