Re: [PHP] Script's length, echo, and execution speed

2006-12-31 Thread Jochem Maas
if performance/profiling this script is very important then take up the various suggestionms for doing just that - the only useful performance answer is the one you garner from your own testing (i.e. within your own env/setup) with regard to the 3500 lines of code (with 300 odd being run on any o

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Jon Anderson
Casey Chu wrote: Yeah, try testing. Maybe something like this: Execute"; if ($_POST['code']) { echo ""; $time_start = microtime_float(); eval($_POST['code']); $time_end = microtime_float(); echo "Loading took: ". $time_end - $time_start. ''; } echo "$form"; // Note: This script is extrem

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Jürgen Wind
Casey Chu wrote: > > Yeah, try testing. Maybe something like this: > $form = " name='code'> type='submit'>Execute"; > if ($_POST['code']) { > echo ""; >$time_start = microtime_float(); >eval($_POST['code']); >$time_end = microtime_float(); > echo "Loading took: ". $time_end -

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Casey Chu
Yeah, try testing. Maybe something like this: Execute"; if ($_POST['code']) { echo ""; $time_start = microtime_float(); eval($_POST['code']); $time_end = microtime_float(); echo "Loading took: ". $time_end - $time_start. ''; } echo "$form"; // Note: This script is extremely dangerous and

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Paul Novitski
At 12/23/2006 10:33 AM, Jean-Christophe Roux wrote: Hello, I have this php script of 3,500 lines with a big switch that is such that on each pass maybe 300 lines of codes are executed at most. The current speed of the file is ok. I like to keep the file like that because at each pass there is a

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Satyam
such as Smarty. Satyam - Original Message - From: "Jean-Christophe Roux" <[EMAIL PROTECTED]> To: Sent: Saturday, December 23, 2006 7:33 PM Subject: [PHP] Script's length, echo, and execution speed Hello, I have this php script of 3,500 lines with a big swi

[PHP] Script's length, echo, and execution speed

2006-12-23 Thread Jean-Christophe Roux
Hello, I have this php script of 3,500 lines with a big switch that is such that on each pass maybe 300 lines of codes are executed at most. The current speed of the file is ok. I like to keep the file like that because at each pass there is a check on the whole script and it fails if there is