A lot globals get constructed there (which also causes code inclusion, though apc helps). It would be nice to lazy instantiate those via some common factory with a registry. We spend ~10ms in Setup.php (more in cli mode), so it won't be that huge. I'd wait on the HHVM gains first to see if it's still worth doing anything there.


On Thu, May 22, 2014 at 5:42 PM, Rob Lanphier <robla@wikimedia.org> wrote:
Hi Aaron,

On our team backlog[1], you added[2] the item:
*  Setup.php speed improvements and service registry

Tim and I saw this when we were making our prioritization pass, and
didn't know what to make of it, though we're trusting it's a pretty
important idea coming from you.  What did you have in mind?

Rob

[1]  It was still the "Ideas list" at the time, but here's the link to
the backlog:
https://www.mediawiki.org/wiki/Wikimedia_MediaWiki_Core_Team/Ideas_list#Setup.php_improvements

[2]
https://www.mediawiki.org/w/index.php?title=Wikimedia_MediaWiki_Core_Team%2FIdeas_list&diff=844277&oldid=837485



--
-Aaron S