Re: Performance Consideration of 1 class per file

From: Date: Sun, 25 Apr 2004 17:48:08 +0000
Subject: Re: Performance Consideration of 1 class per file
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-28341@lists.php.net to get a copy of this message
Sebastian Bergmann wrote:
Christian Schneider wrote:
I guess someone _that_ considered about performance could easily do a cat *.php | grep -v require | php -w >app.lib or the like and include app.lib.
Maybe the PEAR Packager / Installer could be changed to (optionally?) create a single source file (without require/include statements) comments, whitespace) from all role="php" <file>s and use this for deployment.
Before tackling a problem that is probably imaginary: Does anyone have any hard numbers proving that including two files is slower than including one file, for a fixed amount of source code? I'd guess the largest time used while including is used in compilation, and this should be dependent on source code size, not file count. Sérgio Carvalho

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.pear.dev (#28341) next »