TitleFormatter: Don't look up namespace name for ns 0
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 17 Aug 2018 23:21:27 +0000 (16:21 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sat, 18 Aug 2018 00:10:46 +0000 (17:10 -0700)
commitc7cd323c6b2a78c7e13ebe73c1ebb87e49df2666
treed9fd33b39b8380d5c24ed15c70eefe6981f7efb2
parent1acbfef5213bf43b88de0c6ccd2ad01ab4cbce33
TitleFormatter: Don't look up namespace name for ns 0

It's hardcoded to empty string, so we can skip some code.

Profiling (after switching the benchmark script to use NS_MAIN) showed
no noticable improvements in getPrefixedText().

Change-Id: Id6b044a51648d0a3f58331ac0427f9d5cd9d8f0f
includes/title/MediaWikiTitleCodec.php