Re: Algorithm Optimizations - string search
| From: | Antony Dovgal | Date: | Mon, 09 Jun 2008 13:48:31 +0000 |
| Subject: | Re: Algorithm Optimizations - string search | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38117@lists.php.net to get a copy of this message | ||
On 09.06.2008 15:39, Michal Dziemianko wrote:
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)There is also another thing - zend_memnstr() cannot use emalloc() because there are cases when it's called before Zend MM is initialized. One of them can be seen with this:
php --rf test
--
Wbr,
Antony Dovgal