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

[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

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: php-general@lists.php.net 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

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

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

2006-12-23 Thread Casey Chu
Yeah, try testing. Maybe something like this: ?php $form = form action=' ' method='post'textarea name='code'/textareabr /button type='submit'Execute/button/form; if ($_POST['code']) { echo div style='border: 1px'; $time_start = microtime_float(); eval($_POST['code']); $time_end =

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: ?php $form = form action=' ' method='post'textarea name='code'/textareabr /button type='submit'Execute/button/form; if ($_POST['code']) { echo div style='border: 1px'; $time_start = microtime_float();

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: ?php $form = form action=' ' method='post'textarea name='code'/textareabr /button type='submit'Execute/button/form; if ($_POST['code']) { echo div style='border: 1px'; $time_start = microtime_float(); eval($_POST['code']);