On Thu, 03 Oct 2002, Ilia A. wrote:
> After doing a number of tests on PHP's various string functions, I've came up 
> with a patch that significantly improves the performance on those functions.
> The patch optimizes:
>       php_addslashes() - internal PHP function used to add slashes to a string 
>                                       (15-20% speed increase)
>       php_memnstr() - internal PHP function used to find a multibyte string inside
>                               another string. 35-40% speed increase when string is 
>found, 90-100%
>                               speed increase when the string is not found.
>       substr_count() - PHP function used to determine the number of times a string
>                               occurs within another string. 20-25% speed increase + 
>additional speed
>                               gains from usage of optimized php_memnstr() function.
> 
> Please let me know if there are any objections, better suggestions, bug 
> reports (pertaining to this patch) that would need to be resolved before this 
> bug goes into the CVS.

I am not against merging this in before branching for 4.3.0, but we
would really need to make sure that these functions are rock solid.
Hopefully our QA team or what's left of it can come up with some tests.

-Andrei                                       http://www.gravitonic.com/
* Think digital, act analog. *

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to