[TYPO3-dev] [TYPO3-core] New TYPO3 Coding Guidelines
Marc Wöhlken
woehlken at quadracom.de
Thu Jul 9 21:58:17 CEST 2009
Hi!
Vladimir Podkovanov schrieb:
> since single quotes vs double quotes are now working eighter fast (see
> http://www.phpbench.com/) would not be better to use
>
> "Hello $userName"
> rather than
> 'Hello ' . $userName ?
>
> In such way it saves time on concatenations.
>
The difference in performance seems to be below 10% (at least on
www.phpbench.com)and nobody can guarantee that this will be the same
with future php releases. There may be optimizations rendering current
results completely useless.
Adittinonally using different php caches may result in very different
benchmark results.
Readability is also an issue as David already pointed out.
Regards
Marc
--
...........................................................
Marc Wöhlken TYPO3 certified intregator
Quadracom - Proffe & Wöhlken
Rembertistraße 32 WWW: http://www.quadracom.de
D-28203 Bremen E-Mail: woehlken at quadracom.de
______________ PGP-Key: http://pgp.quadracom.de
More information about the TYPO3-dev
mailing list