Various performance and initialisation issues:
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 2 Jul 2006 15:57:59 +0000 (15:57 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 2 Jul 2006 15:57:59 +0000 (15:57 +0000)
commit2ff288720c707a0e08a84828f832ea308a63786e
tree5ca1fe7717ce313f7258943e7be6ff8acd1cf503
parent3fd3a2f1b3f3bfb3d8bcb46e8f75fad6fe5bfb34
Various performance and initialisation issues:
* Made autoloader work for unserialize()
* Made XmlFunctions.php and HttpFunctions.php autoloadable modules, via Http:: and Xml::
* Made Image class autoloadable, global functions moved to ImageFunctions.php where they can be loaded on every invocation.
* Removed some unnecessary require_once() calls
* Deferred $wgValidSkinNames initialisation
* Fixed a couple of silly construct/initialise splits. My idea from C++ experience, bad practice in PHP.
* Deferred skin initialisation in ParserOptions
* Removed $wgMwRedir during an attempt to make MagicWord autoloadable. Didn't complete that, but removing the global is still the right direction.
17 files changed:
includes/AutoLoader.php
includes/Database.php
includes/DefaultSettings.php
includes/GlobalFunctions.php
includes/HttpFunctions.php
includes/Image.php
includes/ImageFunctions.php [new file with mode: 0644]
includes/MessageCache.php
includes/Parser.php
includes/Setup.php
includes/Skin.php
includes/SpecialPage.php
includes/SpecialPreferences.php
includes/Title.php
includes/Xml.php [new file with mode: 0644]
includes/XmlFunctions.php
maintenance/parserTests.inc