resourceloader: Avoid needless GPC normalisation
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 28 Sep 2016 16:47:24 +0000 (17:47 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 28 Sep 2016 16:48:02 +0000 (17:48 +0100)
commitf303bb9360aa8391cf3635bcd9663cfbb1e7679e
tree65c4edf04f05c0bf3fb57904787fddb5a20baf17
parent8e5d90f13f5c6810cdc52df5f227c9ab0a20bd09
resourceloader: Avoid needless GPC normalisation

Utility methods like getFuzzyBool already use getRawVal instead
of getVal (see 83df6d8). But there was still direct use of getVal
which meant we still pay for WebRequest normalisation in load.php.

ResourceLoaderContext::__construct's use of WebRequest::getVal
accounts for 0.12% of execution time according to a Xenon daily log
(2016-09-27.all.reversed.svgz). The total use of WebRequest::getVal
is 0.26% of execution time. So almost half of that comes from RL.

Change-Id: Id37619ceadb5c990abf83f7910104cbc95523d28
includes/resourceloader/ResourceLoaderContext.php