in reply to Re^3: check whether a array element is equal to a string.
in thread check whether a array element is equal to a string.
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.
|
|---|