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
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
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 -
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
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
I would assume it does, since parsing each instruction and calling the
internal functions to execute each echo should take time. I would use
heredoc, which would allow you to make a single call and still keep the
formatting of the string.
You might also be interested in my own plugin to the
6 matches
Mail list logo