3 ms·
> I'm curious how often you find yourself dealing with loops that run millions of times? I think the majority of loops I've written don't need to deal with mill
by chrisseaton 8y ago
> I'm curious how often you find yourself dealing with loops that run millions of times? I think the majority of loops I've written don't need to deal with millions of iterations
It's trivial to come up with 80s-level counter-examples to this.
A megapixel image, for example, is tiny.
- Scooty 8y agoIt's also trivial to come up with countless "80s-level" examples that never iterate more than 100 times. Iterating over a megapixel image isn't a common scenario unless you're processing a lot of large images. Obviously you should optimize hot code paths.