Re: Re: Benchmarking a script
| From: | raditha dissanayake | Date: | Wed, 23 Jun 2004 13:14:39 +0000 |
| Subject: | Re: Re: Benchmarking a script | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188871@lists.php.net to get a copy of this message | ||
Anguz wrote:
Jason Barnett wrote:Either way you will save a few microseconds, if you are lucky you will save a few milliseconds.Well you could put all of your function definitions into a separate file. Then, just include the function file before you loop through the code that uses the functions. Or as an alternative you could also do: <?php if (!function_exists('name_of_function')) { function name_of_function() {Thank you Jason. The problem I'm having is that part of what I'm benchmarking is having to define the functions compared to having not to. Basically part of the speed improvement is taking big parts of the code out of functions, so I need the definitions there :/// do something} } ?> But this really isn't a good idea. Try to put the function definitions into a separate file if that's feasible. Jason
Cristian-- Raditha Dissanayake. --------------------------------------------- http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits.