It's probably bad form to respond to one post twice, but the more I thought about this, the more the argument reminded me of the situation pre-1973 oil crisis, where cars were getting bigger & bigger, and less and less efficient. The solution to the effect of every extra hundredweight of chrome that was added to the outside; was to add more cubic inches to the engine. Petrol was cheap, who cared how much we burnt. Then suddenly petrol wasn't cheap anymore, and those tiny, clunky looking, economic Honda Civics and Nissan Sunnys that everyone had been laughing at, took over the world.

Unfortunately, the lessons of the early '70s have been forgotten, and here we are again with petrol prices going through the roof. Except that this time it's not because a few Sheiks in power decide to raise the prices, but because we're using it up at such a rate, it's running out.

Application code should programmed to be as efficient as is required by it's users--commensurate with correctness and maintainability. If the users are happy with it's performance, there is little mileage in improving performance further.

Library code should be code to be as efficient as is economically possible--commensurate with correctness and maintainability. The author of library code never knows what the demands and requirements of the applications that will use it will be. The more efficient it is (both cycles and memory), the less likely the application programmer using it is going to have to take extraordinary measures (like seeking micro-optimisations), in order to satisfy the requirements of it's users.

I wonder how long it will be before the Moore's Law bubble bursts?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re: Is Performance Overrated? by BrowserUk
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.