2 ms·
Well no ... premature optimization is something else. When you start a project - you make some assumptions about load, shape whatever. Optimizing based on these
by venomsnake 12y ago
Well no ... premature optimization is something else. When you start a project - you make some assumptions about load, shape whatever. Optimizing based on these assumptions before being validated by the real world testing is sub optimal. You don't know where the bottlenecks will be, or how users will interact with your software.
- tjradcliffe 12y agoPremature optimization includes both what you describe and what the GP talks about. Adopting the general rule, "No optimization without quantification" helps in all cases: validate those assumptions early in the design process (with prototypes, user observations, whatever) and with regard to optimization of code later on, profile it intelligently to identify bottlenecks, don't just assume the issue arise from what seem like the obvious culprits.