Re: Is there a big speed difference...
| From: | Brian Dunning | Date: | Thu, 09 Jun 2005 17:06:34 +0000 |
| Subject: | Re: Is there a big speed difference... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216737@lists.php.net to get a copy of this message | ||
On Jun 9, 2005, at 9:48 AM, bruce wrote:
bian... giave a psuedocode example of what you're trying to compare.. i think i know what you're asking, but i want to be sure..OK, this is *pseudocode* remember... :) Is either of these SIGNIFICANTLY slower: === Example 1 === while(loops 5000 times) {
include(myfunction.php);} ...where myfunction.php contains some code. === Example 2 === include_once(myfunction.php); while(loops 5000 times) {
myfunction(xxx);} ...where myfunction.php defines the function myfunction().