3 ms·
To me #5 is talking about the myth that surrounds premature optimization. That is - this idea that thinking through data patterns (or other basic aspects of cod
by artimaeis 9y ago
To me #5 is talking about the myth that surrounds premature optimization. That is - this idea that thinking through data patterns (or other basic aspects of code) early on is a waste of time. It's usually not.
Making the choice to work with collections that can be accessed in O(log n) rather than O(n^2) is a trivial optimization.
Maybe you don't need to scope out every subroutine, but taking the time to review the basic performance features is something we can all strive to do.