Re: [PHP] Re: optimilize web page loading

2008-03-30 Thread Zoltán Németh
Robert Cummings írta: On Sat, 2008-03-29 at 10:16 +0100, Zoltán Németh wrote: One last thing though... even if this were escaped and even if there were fifty variables embedded, a good bytecode optimizer (not quite the same as a bytecode cacher) would optimize the bytecode for caching so that t

Re: [PHP] Re: optimilize web page loading

2008-03-29 Thread Robert Cummings
On Sat, 2008-03-29 at 10:16 +0100, Zoltán Németh wrote: > > > > One last thing though... > > even if this were escaped and even if there were fifty variables > > embedded, a good bytecode optimizer (not quite the same as a bytecode > > cacher) would optimize the bytecode for caching so that the s

Re: [PHP] Re: optimilize web page loading

2008-03-29 Thread Zoltán Németh
2008. 03. 28, péntek keltezéssel 11.31-kor tedd ezt írta: > At 9:14 AM +0100 3/28/08, Zoltán Németh wrote: > > > This way for literal strings, the PHP parser doesn't have to evaluate > > > this string to determine if anything needs to be translated (e.g., > > > $report .= "I like to $foo"). A mi

Re: [PHP] Re: optimilize web page loading

2008-03-29 Thread Zoltán Németh
2008. 03. 28, péntek keltezéssel 10.59-kor Robert Cummings ezt írta: > On Fri, 2008-03-28 at 15:30 +0100, Zoltán Németh wrote: > > 2008. 03. 28, péntek keltezéssel 10.24-kor Robert Cummings ezt írta: > > > On Fri, 2008-03-28 at 14:46 +0100, Zoltán Németh wrote: > > > > > > > > yeah maybe. you're r

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Sancar Saran
My method was. Store into global thingy. Then echo very end of the page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread tedd
At 10:59 AM -0400 3/28/08, Robert Cummings wrote: Nope, when processing a single quoted string there should be 4 available parse branches: EOF '(end of string) \ EOF \ ' anything else anything else Whereas with a double quoted string you have

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread tedd
At 9:14 AM +0100 3/28/08, Zoltán Németh wrote: > This way for literal strings, the PHP parser doesn't have to evaluate > this string to determine if anything needs to be translated (e.g., > $report .= "I like to $foo"). A minimal speedup, but nonetheless... that above statement is simply not

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Robert Cummings
On Fri, 2008-03-28 at 15:30 +0100, Zoltán Németh wrote: > 2008. 03. 28, péntek keltezéssel 10.24-kor Robert Cummings ezt írta: > > On Fri, 2008-03-28 at 14:46 +0100, Zoltán Németh wrote: > > > > > > yeah maybe. you're right, the bytecode is the same. but somewhere I > > > heard that the parsing i

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
2008. 03. 28, péntek keltezéssel 10.24-kor Robert Cummings ezt írta: > On Fri, 2008-03-28 at 14:46 +0100, Zoltán Németh wrote: > > > > yeah maybe. you're right, the bytecode is the same. but somewhere I > > heard that the parsing is the same too - because escaped characters can > > be in any strin

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Robert Cummings
On Fri, 2008-03-28 at 14:46 +0100, Zoltán Németh wrote: > > yeah maybe. you're right, the bytecode is the same. but somewhere I > heard that the parsing is the same too - because escaped characters can > be in any string, though I'm not that sure about this anymore, as my > link proved something e

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
2008. 03. 28, péntek keltezéssel 09.00-kor Robert Cummings ezt írta: > On Fri, 2008-03-28 at 09:31 +0100, Zoltán Németh wrote: > > 2008. 03. 28, péntek keltezéssel 09.19-kor Zoltán Németh ezt írta: > > > 2008. 03. 27, csütörtök keltezéssel 10.21-kor Shawn McKenzie ezt írta: > > > > Jason Pruim wrot

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Robert Cummings
On Fri, 2008-03-28 at 09:31 +0100, Zoltán Németh wrote: > 2008. 03. 28, péntek keltezéssel 09.19-kor Zoltán Németh ezt írta: > > 2008. 03. 27, csütörtök keltezéssel 10.21-kor Shawn McKenzie ezt írta: > > > Jason Pruim wrote: > > > > > > > > On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: > >

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Robert Cummings
On Fri, 2008-03-28 at 09:14 +0100, Zoltán Németh wrote: > 2008. 03. 27, csütörtök keltezéssel 09.29-kor Philip Thompson ezt írta: > > On Mar 26, 2008, at 6:28 PM, Al wrote: > > > Depends on the server and it's load. I've strung together some > > > rather large html strings and they aways take f

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Peter Ford
Eric Butera wrote: On Thu, Mar 27, 2008 at 12:41 PM, Peter Ford <[EMAIL PROTECTED]> wrote: Jason Pruim wrote: > > On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: >> Al wrote: >>> Good point. I usually do use the single quotes, just happened to key >>> doubles for the email. >>> >>> A

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
2008. 03. 28, péntek keltezéssel 09.19-kor Zoltán Németh ezt írta: > 2008. 03. 27, csütörtök keltezéssel 10.21-kor Shawn McKenzie ezt írta: > > Jason Pruim wrote: > > > > > > On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: > > >> Al wrote: > > >>> Good point. I usually do use the single quote

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
2008. 03. 27, csütörtök keltezéssel 09.29-kor Philip Thompson ezt írta: > On Mar 26, 2008, at 6:28 PM, Al wrote: > > Depends on the server and it's load. I've strung together some > > rather large html strings and they aways take far less time than the > > transient time on the internet. I use

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
2008. 03. 27, csütörtök keltezéssel 10.21-kor Shawn McKenzie ezt írta: > Jason Pruim wrote: > > > > On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: > >> Al wrote: > >>> Good point. I usually do use the single quotes, just happened to key > >>> doubles for the email. > >>> > >>> Actually, it's

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
2008. 03. 27, csütörtök keltezéssel 11.13-kor Jason Pruim ezt írta: > On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: > > Al wrote: > >> Good point. I usually do use the single quotes, just happened to key > >> doubles for the email. > >> > >> Actually, it's good idea for all variable assignme

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Eric Butera
On Thu, Mar 27, 2008 at 12:41 PM, Peter Ford <[EMAIL PROTECTED]> wrote: > > Jason Pruim wrote: > > > > On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: > >> Al wrote: > >>> Good point. I usually do use the single quotes, just happened to key > >>> doubles for the email. > >>> > >>> Actua

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Peter Ford
Jason Pruim wrote: On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: Al wrote: Good point. I usually do use the single quotes, just happened to key doubles for the email. Actually, it's good idea for all variable assignments. Philip Thompson wrote: On Mar 26, 2008, at 6:28 PM, Al wrote:

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread tedd
At 10:21 AM -0500 3/27/08, Shawn McKenzie wrote: I would assume your 2 examples to be the same because the point is that the PHP interpreter must parse for vars to substitute when it encounters double-quotes whether there are any vars in it or not. With single-quotes the interpreter does not ha

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Shawn McKenzie
Shawn McKenzie wrote: > Jason Pruim wrote: >> On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: >>> Al wrote: Good point. I usually do use the single quotes, just happened to key doubles for the email. Actually, it's good idea for all variable assignments. Philip Th

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Shawn McKenzie
Jason Pruim wrote: > > On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: >> Al wrote: >>> Good point. I usually do use the single quotes, just happened to key >>> doubles for the email. >>> >>> Actually, it's good idea for all variable assignments. >>> >>> Philip Thompson wrote: On Mar 26,

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Jason Pruim
On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: Al wrote: Good point. I usually do use the single quotes, just happened to key doubles for the email. Actually, it's good idea for all variable assignments. Philip Thompson wrote: On Mar 26, 2008, at 6:28 PM, Al wrote: Depends on the serv

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Shawn McKenzie
Al wrote: > Good point. I usually do use the single quotes, just happened to key > doubles for the email. > > Actually, it's good idea for all variable assignments. > > Philip Thompson wrote: >> On Mar 26, 2008, at 6:28 PM, Al wrote: >>> Depends on the server and it's load. I've strung together

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Al
Good point. I usually do use the single quotes, just happened to key doubles for the email. Actually, it's good idea for all variable assignments. Philip Thompson wrote: On Mar 26, 2008, at 6:28 PM, Al wrote: Depends on the server and it's load. I've strung together some rather large html s

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Philip Thompson
On Mar 26, 2008, at 6:28 PM, Al wrote: Depends on the server and it's load. I've strung together some rather large html strings and they aways take far less time than the transient time on the internet. I used to use OB extensively until one day I took the time to measure the difference. I

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread jeffry s
On Thu, Mar 27, 2008 at 7:28 AM, Al <[EMAIL PROTECTED]> wrote: > Depends on the server and it's load. I've strung together some rather > large html strings and they > aways take far less time than the transient time on the internet. I used > to use OB extensively until > one day I took the time t

Re: [PHP] Re: optimilize web page loading

2008-03-26 Thread Al
Depends on the server and it's load. I've strung together some rather large html strings and they aways take far less time than the transient time on the internet. I used to use OB extensively until one day I took the time to measure the difference. I don't recall the numbers; but, I do recall i

Re: [PHP] Re: optimilize web page loading

2008-03-26 Thread Andrew Ballard
On Wed, Mar 26, 2008 at 1:18 PM, Al <[EMAIL PROTECTED]> wrote: > You are really asking an HTML question, if you think about it. > > At the PHP level, either use output buffering or assemble all your html > string as a variable and > then echo it. The goal is to compress the string into the mini

[PHP] Re: optimilize web page loading

2008-03-26 Thread Al
You are really asking an HTML question, if you think about it. At the PHP level, either use output buffering or assemble all your html string as a variable and then echo it. The goal is to compress the string into the minimum number of packets. Alain Roger wrote: Hi, i would like to know if