4 ms·
Not everyone is building web browser, compiler or even a e-commerce site. Even on commerce-related website, only pages on customer acquisition path and buy path
by hamilyon2 8y ago
Not everyone is building web browser, compiler or even a e-commerce site.
Even on commerce-related website, only pages on customer acquisition path and buy path really matter.
Most of those pages will bubble up when you do your first profiling session anyway.
You can get away with good data structures/good sql queries and a little big O analysis almost everywhere.
Premature optimization, premature nines of stability, premature architecture and abstraction are as evil as ever. They all distract you from moving forward and shipping.
Of course, if your product is BLAS library, database, compiler, web browser, operating system or AAA video game, that does not apply. I mean, for most of us "profile often" is a terrible advise.
(edit: spelling, clarifications)
- kurtisc 8y ago>You can get away with good data structures/good sql queries and a little big O analysis almost everywhere. So design databases and algorithms for performance from day 1 & understand how the data needs to be structured? You'd have to verify the assumptions you made about the data were correct and profile often if you didn't want to worry about performance regressions. Bad enough regressions are a failed product and you can't ship something that could never get fast enough without a rewrite. I don't think everyone in this thread has the same concept of what optimisation means. It doesn't all have to be obfuscating bit-fiddling. Even identifying the important paths is optimisation.