They didn't 'cheat' at all. Creating a set outside of a loop is a perfectly legitimate thing to do.
I'm not saying it's not legitimate, I'm saying in the context of the article, checking for 3 or 4 values once and never again, it's never done. And pretty much irrelevant too, it's just ignoring the cost of creating the set though that creation matters very much. It's dishonest and it does lead to wholly misleading conclusions.
in most cases, a "great number of values" can be as low as 10.
With a 1600% overhead over tuples, I quite doubt 10's going to be enough.
0
u/masklinn Aug 12 '09
I'm not saying it's not legitimate, I'm saying in the context of the article, checking for 3 or 4 values once and never again, it's never done. And pretty much irrelevant too, it's just ignoring the cost of creating the set though that creation matters very much. It's dishonest and it does lead to wholly misleading conclusions.
With a 1600% overhead over tuples, I quite doubt 10's going to be enough.