|
|
|
|
|
by ryandv
604 days ago
|
|
> Sorry but this kind of theoretical reasoning wouldn't move a needle if I'm reviewing your PR. If this were a PR review situation I would ask for a callgrind profile or timings or some other measurement of performance. You don't know how your code will be optimized down by the compiler or where the hotspots even are without taking a measurement. Theoretical arguments, especially ones based on handwavey applications of big-O, aren't sufficient for optimization which is ultimately an empirical activity; it's hard to actually gauge the performance of a piece of code through mere inspection, and so actual empirical measurements are required. |
|
I don't block PRs because of micro optimizations but my examples aren't.