Re: Performance question
| From: | Steve Edberg | Date: | Thu, 11 Jan 2001 19:55:43 +0000 |
| Subject: | Re: Performance question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34083@lists.php.net to get a copy of this message | ||
At 2:22 PM -0500 1/11/01, Ignacio Vazquez-Abrams wrote:
On Thu, 11 Jan 2001, John Guynn wrote: Do I pay a performance penality for calling a file that only contains html code .php or .php3? In otherwords what is the php parser overhead if there is no php code in the file? John Guynn This email brought to you by RFCs 821 and 1225. Yes, because that file will be put through the parser regardless of whether or not there's any PHP in it.The extent of this overhead depends on whether you're running PHP as a module or as a CGI. With CGI, the overhead is quite large, probably too much unless you have a really meaty server or a lightly-hit web site. For an Apache module, I recall a test someone ran > 1 year ago that resulted in an extra ~4 % load for parsing plain html pages through php (as opposed to just statically serving the html pages). This person had set his server to php-parse the .html extension. - steve
-- Ignacio Vazquez-Abrams <ignacio@openservices.net>+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg University of California, Davis | | sbedberg@ucdavis.edu Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ |+-------------------------------------- FBI Special Agent Dale Cooper ---+