From: Reini U. <ru...@x-...> - 2002-10-02 17:26:50
|
ph...@de... schrieb: > On Wed, 02 Oct 2002 07:45:57 -0700, Joby Walker wrote: > => Phpwiki is a pretty big app. Every page access > => requires the loading of many (10+) php files, and then the content of > => the page must be parsed as well. > > Which is *really* unfortunate for those of us trying to > make phpWiki work as an additional collaborative tool for clients > hosted on shared servers (such as those at http://www.pair.com). > > I always keep my fingers crossed that our very creative > phpwiki dev team keeps us in mind as they continue to improve > this great "little" app. Pretty big? I work with php apps which load > 500 php files per page request. Also on public serverhosts, with lots of load. But if it's too slow for you, we can think of optionally concatenating the generally required files alltogether to ease your pain. In some kind of Makefile. (untested. just to get the idea) Makefile: BACKEND = sql DB_ROOT = root DB_ROOTPASS = DB_USER = wikiuser DB_PASS = fixme WIKI_DB = phpwiki ALL = index.php lib/main.php lib/prepend.php ... noop : true install : install-mysql echo "read INSTALL" echo "browse to configurator.php" install-mysql : !if DB_ROOT mysqladmin -u$(DB_ROOT) -p$(DB_ROOTPASS) create $(WIKI_DB) mysql -u$(DB_ROOT) -p$(DB_ROOTPASS) -e"GRANT select, insert, update, delete ON $(WIKI_DB).* TO $(DB_USER)@localhost IDENTIFIED BY '$(DB_PASS)'" !endif mysql -u$(DB_USER) -p$(DB_PASS) $(WIKI_DB) < schemas/mysql.sql single-file : phpwiki.php phpwiki.php: $(ALL) cat $(ALL) > phpwiki.php # patch phpwiki.php to disable most require calls for $s in $ALL; do perl -pi.bak -e"s|require_once\('$s'\)|//$&|" phpwiki.php done echo "use phpwiki.php as your DirectoryIndex" and so on... I've done this single-file version for my autolisp standard library, with the help of a simple perl script. But I found no performance advantage, only administrative. Even on windows which has aching slow fileaccess. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |