ResourceLoader::filter: use APC when running under HHVM
authorOri Livneh <ori@wikimedia.org>
Wed, 13 May 2015 03:45:01 +0000 (20:45 -0700)
committerOri Livneh <ori@wikimedia.org>
Wed, 3 Jun 2015 20:14:10 +0000 (13:14 -0700)
commit458e7cabbbafda81c35cf8270a8393f3fa3f29ad
tree29db0b65d4e5767201800a587000918bb6df38a1
parent2b8a3f02385f3390ba5c0365e68fab1b8a9a6305
ResourceLoader::filter: use APC when running under HHVM

On HHVM, (a) the cost of a ResourceLoader::filter cache miss is smaller, and
(b) APC is faster and more resilient than PHP's. These two things tilt the
scales in favor of using APC rather than Memcached.

Change-Id: I30b490e5bc815849d4b0bb06f2dbbb68825ed225
includes/resourceloader/ResourceLoader.php