Perlmonks is sometimes a funny place! The original post started by stating explicitely that it addressed the problem of optimizing code for big sets of data. In other words: how to optimize when you NEED to.

Why all the bashing and the warnings and the "premature optimization is the root..." routine? If you don't need to optimize then don't. If you need to then read this post and learn. Or discuss. But there is only one reply in this all thread that actually discusses optimization techniques, all the others redundantly chant the "don't optimize" mantra.

Please people, let Perlmonks be a place where such topics can be discussed, not one where they are stiffled by the official party line.

The original post made usefull suggestions, and you will be a better programer if you know the techniques it describes. So please, try being constructive and giving other techniques you used, not adding yet another "thou shalt not optimize" post to the thread. After all I don't see people answering golf posts, with "please do not write code like this", "build a test suite first" and "documentation, documentation, documentation!". There is a place for golf on Perlmonks and there should be a place for discussing optimization techniques too. They ARE useful.

Thank you for your attention, and I can now go back to chastisizing people who parse XML with regular expression ;--)


In reply to Faster PerlMonks: Good and Bad News by mirod
in thread Faster Perl, Good and Bad News by abitkin

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.