Re: Is there a big speed difference...

From: Date: Thu, 09 Jun 2005 17:33:37 +0000
Subject: Re: Is there a big speed difference...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-216746@lists.php.net to get a copy of this message
Brian Dunning wrote:
I have an include file with about 6 lines of code, just text parsing. If I have to loop through 5000 records, is there a big difference between (a) calling this include file 5000 times, and (b) defining a function and just calling the function 5000 times?
Yes, there is a big difference. Including files is expensive, even with a compiler cache. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/

« previous php.general (#216746) next »