wiki.techinc.nl/includes/title
Kunal Mehta d0f56e873d Optimize TitleFormatter::getPrefixedText() to Title performance
...by instance caching the result on the LinkTarget object.

Title::getPrefixedText() is an extremely hot function that has been
fully optimized over the years due to its usage basically everywhere in
MediaWiki.

Apply the same treatment to TitleFormatter, but keep the caching as part
of the LinkTarget instance so we can share caches across Title and
TitleFormatter. Once Title is switched over to using TitleFormatter
internally, we can probably centralize the cache again, and get rid of
the public but marked @private member variables.

Bug: T201801
Change-Id: I4ae2d6b176f69f66720473aeae85e39a601a9781
2018-08-17 17:43:52 -07:00
..
ForeignTitle.php
ForeignTitleFactory.php Remove various redundant '@license' tags in file headers 2018-01-12 18:15:11 +00:00
ImportTitleFactory.php Remove various redundant '@license' tags in file headers 2018-01-12 18:15:11 +00:00
MalformedTitleException.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
MediaWikiTitleCodec.php Optimize TitleFormatter::getPrefixedText() to Title performance 2018-08-17 17:43:52 -07:00
NaiveForeignTitleFactory.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
NaiveImportTitleFactory.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
NamespaceAwareForeignTitleFactory.php Remove various redundant '@license' tags in file headers 2018-01-12 18:15:11 +00:00
NamespaceImportTitleFactory.php Remove various redundant '@license' tags in file headers 2018-01-12 18:15:11 +00:00
SubpageImportTitleFactory.php Remove various redundant '@license' tags in file headers 2018-01-12 18:15:11 +00:00
TitleFormatter.php TitleFormatter: Remove indirection from getText() 2018-08-17 17:10:46 -07:00
TitleParser.php Have TitleParser::parseTitle() default to NS_MAIN to match Title 2018-08-14 20:58:34 -07:00
TitleValue.php Optimize TitleFormatter::getPrefixedText() to Title performance 2018-08-17 17:43:52 -07:00