Re: Re: Print or Echo takes lots of time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, September 26, 2006 4:08 am, Colin Guthrie wrote:
> Google Kreme wrote:
>> On 25 Sep 2006, at 06:11 , Sancar Saran wrote:
>>> $strPage = "<html> yada dayda";
>>> ...
>>> $strPage.= " another html tags";
>>> ...
>>> $strPage.= getSqlDataAndCreateSomeHtmlCOde();
>>
>> If this is generating hundred of K of HTML, use ' instead of "
>>
>> (yes, it's faster).
>
> In this example tho', it is not the string processing that is taking
> up
> the time. The $ expansion etc. will be done when building the string
> $strPage, not at the echo stage which is where the OP is seeing the
> delay.

Plus it's "faster" in such a marginal sense that you'd have to be
doing zillions in a very tight loop to measure it.

Benchmark it for yourself and see.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux