|
Posted by Andy Hassall on 07/20/07 18:24
On Fri, 20 Jul 2007 18:54:25 +0200, Michael Fesser <netizen@gmx.de> wrote:
>>While theres no difference in using double or single quotes - but
>>concatenation is much faster than embedd variables into strings.
>
>Not necessarily. In the UCNs on php.net you'll find "benchmarks" that
>state one or the other
It should probably be mentioned that PHP 5.2.3 included optimisations in the
way PHP parses and evaluates interpolated strings and heredocs, so any
differences are quite possibly even less noticable in versions from now on.
>And performance is hardly ever a reason when printing out something.
Yep. On a related note, I've recently been using xdebug's profiler option,
feeding the data into kcachegrind - this works quite nicely to find the real
bottlenecks in PHP code:
http://xdebug.org/docs/profiler
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|