resourceloader: Tiny optimization to ResourceLoader::isValidModuleName()
authorOri Livneh <ori@wikimedia.org>
Mon, 5 Oct 2015 18:39:13 +0000 (11:39 -0700)
committerKrinkle <krinklemail@gmail.com>
Mon, 5 Oct 2015 19:34:51 +0000 (19:34 +0000)
commite9bafa0ed2a8c064cc43c673dd4f9efdb812045c
tree07be13ded7756c6a2f01589615d1dd3790bd096d
parent543445d12556c57e6398f135723113c0e2fa1715
resourceloader: Tiny optimization to ResourceLoader::isValidModuleName()

This is a micro-optimization, but ResourceLoader is so well-optimized at this
point that the call to PCRE accounts for 1.25% of all load.php CPU time. So
might as well making it a tiny bit faster.

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