"The key to making programs fast is to make them do practically nothing."
"The key to making programs fast is to make them do practically nothing."
Basically means only do exactly what's required, nothing more, nothing less.
But my optimizations were guided by the profiler and a (more or less) correct analysis of the results.
However that requires a level of process that is either too costly, or too rigid for many IT companies to follow.
I wish more places would try this. Sure, your app works in downtown SF, but if your customer is in Nowheresville, AL, you should probably spend more time optimizing.
All of your apps will say "I have data access!" and send a million requests for tens of megabytes, which will never finish, melting your battery as it waits on timeouts and completely choking the access you do have preventing you from doing anything useful.
Why making program faster when it works fine on their top of the line desktop machines?
To have fast network, reduces network utilisation (for example using cache). To have fast database, reduce number of queries (for example using more complex queries). To have fast memory allocation, avoid dynamic memory or preallocate...
> The only bug-free line of code is the line of code that is never written.
I've heard about PEP484 and hope it catches on, but unfortunately it's for python3 and a lot of people are still stuck on python2 for many reasons.