Yet Another Optimization Article
About code performance (speed!) and optimization.
Thu Jan 26 14:56:13 2017 - permalink -
"Optimizing an existing program follows a specific set of steps. First, you need a profiler —a program that can analyze how much time your program spends in its various parts."
When it comes to optimize anything :
"Measure twice, cut once."
"If you make an optimization and don't measure to confirm the performance increase, all you know for certain is that you've made your code harder to read."
"All of this reinforces the key rule that first you need to make you program clear, well factored, and nicely modular. Only when you've done that should you optimize."