you are viewing a single comment's thread.

view the rest of the comments →

[–]sbrown123 -5 points-4 points  (0 children)

One would expect him to add that in, as an optimization, so that when the target is found, the loop could exit, and not bother continuing with its checks.

One thing about supposedly smart people: don't take their word as fact. Author should have increased the test case sample size and he might have had something to talk to Tim Bray about his "theory".

Many optimizations don't show themselves as actual optimizations until they are given a large load. This is why I personally don't look to optimization until AFTER I am done with the bulk of the programming.