Re: filter function vs regular expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nathan Nobbe wrote:

> to elaborate, in general, the filter extension should be faster than
> corresponding preg_* calls from user space.  why?  b/c, they
> essentially are compiled calls to pcre (in many cases) 

There is no or only the tiniest little difference - AFAICT preg_match
and the filter extension both use the same regex caching mechanism.  If
the regex has not been compiled, the first call will compile it,
subsequent calls will use the already compiled regex.


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux