Re: Modularity--Optimizing Includes and Libs

From: Date: Thu, 20 Sep 2001 15:38:55 +0000
Subject: Re: Modularity--Optimizing Includes and Libs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68050@lists.php.net to get a copy of this message
On Wed, 19 Sep 2001 12:30:50 -0700 (PDT) impersonator of b_paksoy@yahoo.com (Bora Paksoy) planted &I saw in php.general: >that PHP parses/compiles pages everytime a new request >comes in. So, does this mean we have to minimize the >amount of code per page (which also means to minimize >number of includes) to improve response time? I mean, This was my concern too, since this is a script language, and not precompiled binary calls:((. I usually make it the compromize way: small, simple (unlikely to be ever changed), although widely used functions, are repeated inside every main script file; and big, less common, functions - are _included_, for better maintainability/documentation. Don't know how much it helps performance-wise though. -- i Leonid

« previous php.general (#68050) next »