Re: big include

From: Date: Fri, 08 Nov 2002 22:13:25 +0000
Subject: Re: big include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123498@lists.php.net to get a copy of this message
At 22:56 08.11.2002, Khalid El-Kary said: --------------------[snip]-------------------- >hi, >I wanted to ask about if big include files affect the speed of the script ? if it's included with include_once, it shouldn'r make a big difference - on an average linux box loading a 21k file into memory should take no more than 0.5 msec, plus source parsing. >Normally, it should, but i heared that PHP stores the parsed result of >scripts in memory since the first run for next usage, is that true? and if >not, does parsing 21 KB very time, really affects the speed? This depends on the code - if you have a lot of comment, then it's usually faster ;-) Honestly - you need to profile this to get a real answer. If you have a "library" with a bunch of functions it would be better to include only a subset of functions when you need them. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#123498) next »