Re: PHP functions to convert markup efficiently [message #183816 is a reply to message #183815] |
Thu, 21 November 2013 19:29 |
James Harris
Messages: 11 Registered: November 2013
Karma:
|
Junior Member |
|
|
"Christoph Michael Becker" <cmbecker69(at)arcor(dot)de> wrote in message
news:528e5aa6$0$6627$9b4e6d93(at)newsspool2(dot)arcor-online(dot)net...
....
>>>> For example, it looks like I could choose between PHP's expand(),
>>>> fgets()
>>>> and regular expression handling.
>
> I never heard of a PHP function called expand().
Oops - that should have been explode().
>>>> Of course, implemenations may differ slightly but, on average, are
>>>> there
>>>> certain PHP approaches that could be expected to be faster than others?
>
> Most likely those which are programmed in C.
Is there a way to identify those?
That may not be the only consideration. ISTM that even if the regular
expression handler is programmed in C simple string handling (hopefully also
programmed in C) should be much faster as long as it is written sensibly.
James
|
|
|