2 ms·
Write the code without considering performance. It should be both readable and easy to refactor. Then profile your code and determine where to rewrite for perf
by smt88 6y ago
Write the code without considering performance. It should be both readable and easy to refactor.
Then profile your code and determine where to rewrite for performance.
In my experience, big performance optimizations are usually small changes and don't affect readability much.
(Systems-level C/C++ can be exceptions to the above, of course.)