Re: [PHP] Print or Echo takes lots of time

2006-09-28 Thread Ivo F.A.C. Fokkema
On Tue, 26 Sep 2006 21:45:58 +1000, David Tulloh wrote: > Google Kreme wrote: >> On 25 Sep 2006, at 06:11 , Sancar Saran wrote: >> ... >> >> If this is generating hundred of K of HTML, use ' instead of " >> >> (yes, it's faster). >> > > I've seen this stated several times and at first glance i

Re: [PHP] Print or Echo takes lots of time

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 3:37 am, Sancar Saran wrote: > Thanks for supporting, because of approaching the problem I don't want > to > change generate once echo one style. > > And I found solution like this, > I split variable into an array and generate loop for printing, mostly > fix the > probl

Fwd: Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Børge Holen
-- Forwarded Message -- Subject: Re: [PHP] Print or Echo takes lots of time Date: Wednesday 27 September 2006 06:37 From: Børge Holen <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] On Wednesday 27 September 2006 01:46, Richard Lynch wrote: > On Tue, September 26, 200

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Robert Cummings
On Tue, 2006-09-26 at 18:46 -0500, Richard Lynch wrote: > On Tue, September 26, 2006 6:35 pm, Curt Zirzow wrote: > >> I wonder what would happen if you put your swap on a RAM disk? > > > > I actually have done this, it works like a charm :) > > > > you just have to ensure swap doesn't run out... of

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 6:35 pm, Curt Zirzow wrote: >> I wonder what would happen if you put your swap on a RAM disk? > > I actually have done this, it works like a charm :) > > you just have to ensure swap doesn't run out... of course i'd only > recomend this on a dedicated machine for like fir

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Curt Zirzow
On 9/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, September 26, 2006 12:16 pm, Børge Holen wrote: > On Tuesday 26 September 2006 02:07, Robert Cummings wrote: >> On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: >> > I'm sitting here with 4 Gigs of RAM trying to figure out how to

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 12:16 pm, Børge Holen wrote: > On Tuesday 26 September 2006 02:07, Robert Cummings wrote: >> On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: >> > I'm sitting here with 4 Gigs of RAM trying to figure out how to >> use >> > it all... :-) (Me, in 2005) >> >> Not real

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 7:11 am, Sancar Saran wrote: > When I was check the performance of my system I found interesting > resuts. > > My code stores html output into a variable. When page creation > complete I > printed out the variable. > > Problem was generation html code takes 0.5 second and

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Børge Holen
On Tuesday 26 September 2006 02:07, Robert Cummings wrote: > On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: > > I'm sitting here with 4 Gigs of RAM trying to figure out how to use > > it all... :-) (Me, in 2005) > > Not really related to the post... but I find a good way to eat up 4 gigs >

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread David Tulloh
Google Kreme wrote: > On 25 Sep 2006, at 06:11 , Sancar Saran wrote: > ... > > If this is generating hundred of K of HTML, use ' instead of " > > (yes, it's faster). > I've seen this stated several times and at first glance it seems to make sense. The double quoted version has all the \n and r

Re: [PHP] Print or Echo takes lots of time

2006-09-25 Thread Robert Cummings
On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: > I'm sitting here with 4 Gigs of RAM trying to figure out how to use > it all... :-) (Me, in 2005) Not really related to the post... but I find a good way to eat up 4 gigs of RAM is to run several VMWare nodes :) Depending on what these n

Re: [PHP] Print or Echo takes lots of time

2006-09-25 Thread Google Kreme
On 25 Sep 2006, at 06:11 , Sancar Saran wrote: $strPage = " yada dayda"; ... $strPage.= " another html tags"; ... $strPage.= getSqlDataAndCreateSomeHtmlCOde(); If this is generating hundred of K of HTML, use ' instead of " (yes, it's faster). -- I'm sitting here with 4 Megs of RAM trying to