Get rid of StubUser. Constructing a user object isn't quite as intensive as it once...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 12 Aug 2010 17:10:00 +0000 (17:10 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 12 Aug 2010 17:10:00 +0000 (17:10 +0000)
commit985e8971c8ceede96feb8e4e30a79ddf32109eb6
tree170e2aa70454f4a65a9389750dd14728b975b87c
parentad688fc6fd1bc4dcae2258e9556f62f3e7cc704b
Get rid of StubUser. Constructing a user object isn't quite as intensive as it once was. It actually takes more time using the StubUser (construction + unstub on first call) than just initializing User::newFromSession() from the start. Either way, the real overhead starts when you start calling methods (for the nitpicky, the optimization was only about 20µs. The real gain here was eliminating a StubObject)
includes/AutoLoader.php
includes/Setup.php
includes/StubObject.php