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

Frans Saris franssaris at gmail.com
Thu Mar 4 12:09:11 CET 2010


2010/3/3 Ries van Twisk <typo3 at rvt.dds.nl>

>
> 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
>
>
hi,

Why don't you use PHP_EOL ?

Easy to read, no quotes, no function call just native php.

gr. Frans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100304/34a24f6c/attachment.htm>


More information about the TYPO3-team-core mailing list