I feel what this pragmatic guide is missing is the reason of optimising code.
No one will run code that does not do what we require it it do. So the right result from the code is priority number 1.
Does it give the right result in a time scale in which the function gives benefit?
Reloading a webpage < 1 second
Weather forecast for tomorrow < a few hours
I feel what this pragmatic guide is missing is the reason of optimising code.
Keep the task in mind always :)
It’s an effective bar for optimisation
Good point!
I'm not sure what you mean by "Weather forecast tomorrow < a few hours", though.
Well if you want to predict the weather tomorrow but it’s going to take you till tomorrow to predict it, then it’s pretty useless.