Re:Why I prefer objects over switch statements
by Scooty on Friday March 01, 2019 @05:51PM
(#19286095)
Both of these seem like cases where you would know you're in a hot loop. I wasn't really clear in my comment that of course you should optimize loops that you know get run millions of times. I was saying: pick your tools based on the context of the code you're writing. Most simple applications involve tens or hundreds of loops that rarely iterate over more than a few values and don't get run more than once every few seconds.
[ Parent
| on HN ]
There are no comments on this comment yet.