[Typo3-dev] char <-> string -> overhead -> speed
Peter Russ
peter.russ at 4dfx.de
Fri Sep 24 22:39:54 CEST 2004
Sylvain Viart wrote:
[...]
>
> $nl = "\n";
> $stringChar = '';
> for($i=0;$i<$imax;$i++) $stringChar .= 'Test'.$nl.'newLine';
>
> It would be great to have a lot of small example like this one and doing
> benchmark test. But we also should know about PHP internal optimization.
> I would be interesting to know PHP internal behavior on such code example ?
>
> We should also take care about php external optimizer or cache engine.
> Because, I think it's not necessary to headache if an optimizer do all
> the stuff in behind. ;-)
Some kind of KI?
If the external optimize the one then it will also do it with the other.
This argument works vice versa.
So enjoy the weekend. Perhaps on Monday you are more open minded and can
answer.
Regs. Peter.
More information about the TYPO3-dev
mailing list