On Apr 24, 2004, at 10:18 AM, 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.


Having naively tried this in the past, a couple comments:

1) it's not as simple as it sounds, especially if you have includes that do more than just declare functions and classes.
2) it's hard to debug when things go wrong, as the sources aren't where you had them.
3) if you have any conditional includes,
3a) things can easliy break
3b) you often end up doing more work and being slower than using the includes


I don't think this is a truly awful idea, but should be approached with a high degree of caution, as it's pretty brittle.

George

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to