Jeff Clites <[EMAIL PROTECTED]> wrote: > On Apr 21, 2004, at 4:05 AM, Leopold Toetsch wrote:
>> ... a factor ~14 performance increase for the "not equal" case. > Ah, great! With an optimized compile (of string.c only) the speed up decreases to only a factor of 12 :) > (And the "not equal" case is the only one which should be > showing a speed up--the "same" and "equal" cases are expected to be > unaffected.) The "equal" case was missing one thing: if both strings are COWed copies, the compare can be avoided too - it's equally fast then, as "not equal". That's already in CVS. These changes in your code show the case: concat S0, "a" #concat S1, "a" # <<<<<<<< assign S1, S0 # <<<<<<<< > JEff leo