Jeff Clites <[EMAIL PROTECTED]> wrote:

> Here's another tiny patch, to let us fast-fail string_equal if we have
> cached hashval's which don't match.

Tested and applied now. I've also adoped JIT/i386 to use string_equal
for C<eq> and C<ne> string ops. This speeds up these ops considerably
*and* in the case what your test is showing, numbers indicate:

No stored hashval, 1000000 lookups each
same:  0.018617 sec
equal:  0.487958 sec
not equal:  0.517992 sec
With stored hashval, 1000000 lookups each
same:  0.019674 sec
equal:  0.487740 sec
not equal:  0.038465 sec

... a factor ~14 performance increase for the "not equal" case.

> JEff

Thanks,
leo

Reply via email to