[Typo3-dev] char <-> string -> overhead -> speed
Sylvain Viart
sylvain at ledragon.net
Mon Sep 27 08:28:07 CEST 2004
Hi,
Karsten Dambekalns wrote:
>>The question raised when I used the extdeveval extension with the option
>>of transfering all " to '. Because a "\n"!='\n'.
>>So there should be a benefit to transfer all strings to char-arrays. For
[...]
> Note: Whether the internal (C-)representation is different, I don't
> know! So this might be inaccurate. Be warned. :)
[...]
> The point is, that PHP does no variable interpoltaion (that's what it
> is called in the manual, IIRC) for strings enclosed in single
> quotes. Thus it doesn't need to search for variables that might be
> hidden in a string, which makes things faster.
[...]
>>I'm interested in the advantages of doing/programming things in one way
>> or another. Any hint is highly appricated.
It's very interesting, thanks a lot. :-)
I hope some of you, with much more php profiling knowledge than me, can
write some hint about that discussion in the page previously cited:
http://wiki.typo3.org/index.php/TYPO3_sourcecode_profiling
...for everyone's benefits, thanks. :-)
--
Regards,
Sylvain Viart (France)
TYPO3 DocTEAM.
More information about the TYPO3-dev
mailing list