You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 34I think you need to distinguish between premature optimization, and unnecessary optimization. Premature to me suggests 'too early in the life cycle' wheras unncessary suggests 'does not add significant value'. IMO, requirement for late optimization implies shoddy design.Shane MacLaughlin– Shane MacLaughlin2008-10-17 08:53:02 +00:00Commented Oct 17, 2008 at 8:53
- 161Yes, but evil is a polynomial and has many roots, some of them are complex.dan_waterworth– dan_waterworth2011-05-29 12:31:27 +00:00Commented May 29, 2011 at 12:31
- 9You should consider, that Knuth wrote this 1974. In the seventies it was not that easy to write slow programs as it is nowadays. He wrote with Pascal in mind and not with Java or PHP.ceving– ceving2013-10-02 13:51:00 +00:00Commented Oct 2, 2013 at 13:51
- 4"which basically moved instances of Java Format classes into a thread local, since they are not thread safe" is not premature optimization. The "and 'relatively expensive' to create" is a secondary justification. Removing a danger to threading by itself probably justifies the change (weasel word 'probably' because I don't know what threading y'all are doing). A combination of removing a logic / race /threading risk along with reducing some performance risk should be acceptable. The only quibble would be if there were large, unresolved problems unrelated to these left to be resolved.Kristian H– Kristian H2014-12-11 19:12:36 +00:00Commented Dec 11, 2014 at 19:12
- 21@ceving In the 70 it was as easy as today to write slow programs. If you choose the wrong algorithm or the wrong data structure then BAM! Bad performance all over the place. One could argue the other way around. Today that are a lot more tools and should be inexcusable that a programmer still write software that suffers at the most basic save operation. Parallelism became almost a commodity and we still suffer. Slow performance can't be blamed on the language or tool or CPU or memory. It's a delicate balance of so many things which is why it's nearly impossible to optimize early.Alex– Alex2015-01-15 12:19:04 +00:00Commented Jan 15, 2015 at 12:19
| Show 7 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you