News for hackers. Stuff that matters.
Re:A single character code change by gwd on Thursday January 02, 2020 @02:35PM (#21938868)
But this isn't at all an example of "premature optimization". There was a well-defined, long-term issue they were having, and someone fired up a profiler, and showed that a particular change had a massive impact. That's exactly the opposite of "premature optimization".
Re:A single character code change by mannykannot on Thursday January 02, 2020 @03:52PM (#21939681)
I think it is supposed to be an example of just-in-time optimization that almost did not happen. The implication seems to be that the architects did not even consider code-level optimization as a possible solution.

Maybe the better message is "try to understand the causes of your problem before you try to solve it."

Re:A single character code change by cryptonector on Thursday January 02, 2020 @11:17PM (#21943106)
Preallocating space you won't need is premature optimization. I think that's what TFA meant to say, and maybe even said it, who knows.