News for hackers. Stuff that matters.
Re:Performance Matters by TeMPOraL on Monday August 19, 2019 @11:47AM (#20738789)
> Instead, what you get is code that is much longer, and more complex, and therefore harder to update, and more likely to be buggy.

I'm gonna repost a chart I made previously[0][1].

  Spectrum of performance:
  LO |---*-------*--------*------------*-------| HI
         ^       ^        ^            ^
         |       |        |            |_root of all evil if premature
         |       |        |_you should be here
         |       |_you can be here if you don't do stupid things
         |_you are here
Tricks like denormalizing your data model ("cache values in multiple places") start somewhere around the "you should be here" point. But in any typical program there's plenty of stuff to be done left of that point, and those things don't make your code more complex or longer. They only require care and willingness from the software vendor.

--

[0] - https://news.ycombinator.com/item?id=20389856

[1] - https://news.ycombinator.com/item?id=20520605

Re:Performance Matters by unrealhoang on Monday August 19, 2019 @10:21PM (#20743347)
Usually, it's more like this:

  LO |---*------------------*----*--*-| HI
         ^                  ^    ^  ^
         |                  |    |  |_root of all evil if premature
         |                  |    |_you should be here
         |                  |_you can be here if you don't do stupid things
         |_you are here