News for hackers. Stuff that matters.
Re:4B If Statements by afandian on Friday December 12, 2025 @07:48AM (#46243632)
Isn't the obvious thing to generate different classes for different ranges over the input? Then the classes could be loaded lazily.

And if you then make the ranges tree-shaped you get logarithmic complexity, which massively cuts down the O(n) of the rather naive chained `if` statements.

There are no comments on this comment yet.