Hello,
Here: http://212.85.117.53/DIFF.txt is small patch that will speed up following functions:
strpos,
stripos,
strrpos
strripos,
and probably some others (all that use zend_memnstr/php_memnstr function)

The speedup of zend_memnstr is about 8% on average (about 30% in case of artificial strings).
Functions strrpos and strripos are about 25% faster on average.

The only drawback - it needs some additional space (size of the needle).

All functions pass all the tests.

If it looks fine than I will apply for cvs account.

Cheers,
Michal 

Reply via email to