Why not just take that file and remove anything that isn't a function (so
nothing actually executes) and then do something like:
print microtime();
include thatfile.php;
print microtime();
and see how long it took to parse 3000 lines... one more line isn't going
to make that much difference.
That is an excellent example.
And just for the hell of it, Ill leave the lines that aren't in the
function as is, just for the hell of it.
Thanks.
Philip Hallstrom wrote:
Why not just take that file and remove anything that isn't a function (so
nothing actually executes) and then do something
GS ?php
GS echo 'Finished';
?
I can do one better:
... ?Finished?php ...
Seriously, I think he's right to think parsing 3000 lines with *every*
call will be less than ideal. He should use include() conditionally
to grab only the necessary code, but only to an extent. Then you
start adding
3 matches
Mail list logo