4 ms·
I find it's best to write readable, straightforward code at first, and when performance really matters, benchmark to find places where you can eke out the perce
by idealmedtech 4y ago
I find it's best to write readable, straightforward code at first, and when performance really matters, benchmark to find places where you can eke out the percentage points that matter. Premature optimization can waste valuable hours when you don't know what how production workloads will stress your application.
- LorenPechtel 4y agoThis. I always write for readability and only pay attention to performance when it's something that's going to be repeated often and it matters on the big-O scale. Optimizing beyond that should only be done with the profiler to guide you.