It depends on how you think about performance. Saying "performance is for suckers" is just as bad as saying "performance is everything, always".

Since you can only count on one hand the number of times performance mattered to you, you probably aren't running into the right sort of problems. Consider things like Amazon, Ticketmaster, Google, and so on. Performance certainly matters there. I'm sure you can come up with several more examples. When I was doing physics, I had to slog through huge datasets. Waiting 30 minutes for a report definitely sucked, so performance mattered there too.

I've worked on some systems that had to serve tens of thousands of people all trying to do something at the same time. Performance certainly mattered there. I've also worked on things where I was lucky if one person used it a day, and performance didn't matter there. Often these things are a matter of scale. Indeed, look for people talking about my Mac::PropertyList module. It's acceptable for small file sizes, but gets exponentially slower with the size of the file. Performance is the big thing that people complain about (anyone want to fix that? :) for that module.

The real answer is "Performance might matter depending on what you are doing". It's one more thing on your to-do list, and you have to prioritize it like everything else. However, as you're coding, you want to have performance in mind so you have less stuff to fix later.

Remember that performance just isn't about fast code either. Over slow networks you want to efficiently use your bandwidth. On multi-user systems, you don't want to suck away all of the CPU cycles or memory (okay, maybe you do, but you shouldn't).

Still, working code usually trumps optimization, but that's just an optimization of non-working code. :)

--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review

In reply to Re: Is Performance Overrated? by brian_d_foy
in thread Is Performance Overrated? by pileofrogs

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.