3 ms·
It depends if we optimize for thtoughput or latency.
by ajuc 10y ago
It depends if we optimize for thtoughput or latency.
- TickleSteve 10y ago(I mentioned overall duration or latency which covers your point). but those two cases are the same.... they're both performance-critical code. Not all code is.
- ajuc 10y agoI would argue in this context "optimize running time" is different while "optimize latency" and "don't care about performance" are similar. I mean - if you don't care about total running time it makes sense to remove special cases that don't change the worst case because of readibility/bugs, no matter if you care about latency.