You mean, it's faster to do N * 2 comparisons than 2 * N comparisons?
true. same number of comparisons. I suppose I was thinking in terms of fitting the comparison elements into the processor's register space. sorry, old asm programmer here. :) I agree it's a pretty cool solution. Thanks.
In reply to Re^4: check whether a array element is equal to a string.
by raybies
in thread check whether a array element is equal to a string.
by ritchie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |