resourceloader: Optimize module registry sent in the startup module
authorMarius Hoch <hoo@online.de>
Sun, 7 Jul 2013 22:51:15 +0000 (00:51 +0200)
committerMarius Hoch <hoo@online.de>
Fri, 25 Apr 2014 17:32:19 +0000 (19:32 +0200)
commitdf8176e8a56ecc380da41f037435ff2a066690ec
treef5013b48763b75a779849145352f1d328d6ddcb8
parent26d1454dfdda77a8c6e024da20f087afb3140401
resourceloader: Optimize module registry sent in the startup module

The optimization basically works like this:

* Given module A with the dependencies B and C and module B with the
  dependency C.
* Don't tell the client that A depends on C, as that's already included
  in module B.

This way we can reduce the amount of data for module registration sent
to the client.

The code here isn't polished yet, but it works and should be good enough
to demonstrate my idea and implementation.

Change-Id: I7732a3b1d879c5eef059e136a5241d6d48046872
includes/resourceloader/ResourceLoaderStartUpModule.php
tests/phpunit/includes/resourceloader/ResourceLoaderStartupModuleTest.php