News for hackers. Stuff that matters.
Re:Why I prefer objects over switch statements by chrisseaton on Friday February 22, 2019 @12:46PM (#19227319)
> 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.

Re:Why I prefer objects over switch statements by Scooty on Friday March 01, 2019 @05:28PM (#19285966)
It'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.