[TYPO3-core] RFC #12066: Code cleanup: Add some constants

Ries van Twisk typo3 at rvt.dds.nl
Wed Mar 3 18:59:57 CET 2010


On Mar 3, 2010, at 12:33 PM, Steffen Kamper wrote:

> Hi,
>
> Sigfried Arnold schrieb:
>> Am 03.03.2010 17:51, schrieb Steffen Ritter:
>>> \n is bad to read.
>>> "" is slower than ''
>> Stating double quotes are slower than single quotes is a common  
>> mistake. Double quotes are faster, but the difference is very  
>> insignificant.
>
> seems you didn't read it carefully, you're wrong. Double quotes  
> enable parsing, which obviously is slower than single quotes without  
> parsing.
>
> vg Steffen


Steffen,

in my test I see that a double quote is slightly faster..

According to the people here : http://phpbench.com/ it also really  
doesn't matter anymore,
I would go for readability...

I can send you the test if you are curious, this is on PHP 5.2.11

Ries




More information about the TYPO3-team-core mailing list