logoalt Hacker News

inglor_czlast Thursday at 5:51 AM4 repliesview on HN

I agree fully. Speed matters. Too many people consider CPU time too cheap to consider. I still marvel at how fast and efficient could Symbian OS be on a 190 MHz Nokia. (Though the API was hell.)

That said, it is also true that premature optimization is the root of all evil.

I suspect programming wisdom hides somewhere in between those two hills, neither of which is worth dying on.


Replies

hansvmlast Thursday at 5:57 AM

That's an interesting point as well, but the entire article seems to me to be focused on programmer speed rather than program speed. What about it spoke to the latter rather than the former for you?

show 1 reply
Aurornislast Thursday at 6:10 AM

Well the article is about speed of development, not the speed at which the code runs.

Over the years I’ve come to embrace moving fast and writing code quickly, even if it’s not the fastest. The faster I get the big things done, the more time I can spend optimizing what matters after I’ve identified it and determined it’s valuable.

show 2 replies
tmtvllast Thursday at 4:10 PM

> premature optimization is the root of all evil.

Yeah, we should forget about small efficiencies, say about 97% of the time. Yet we should not pass up our opportunities in that critical 3%.

rockwotjlast Thursday at 5:56 AM

Yeah be data driven and optimize the hot data path, the other code paths optimize for simplicity (and the majority of a system is the latter)