Title::isKnown via Title::isKnown triggers the TitleIsAlwaysKnown hook. Most of its time is spent inside GlobalUserPageHooks::onTitleIsAlwaysKnown. This kind of check is supposed to be quick. Is there some low hanging fruit in there we can optimise?
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Krinkle | T101348 GlobalUserPageHooks::onTitleIsAlwaysKnown notably slows down Title::isKnown() calls | |||
| Restricted Task |
Event Timeline
Comment Actions
From T72585 in 2014 (before this task):
After after this task, which removes most of what showed up in the flame graph above:
- (Mar 2015) Add User::load() call for performance. https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalUserPage/+/199176, by @aaron, ref T92455.
- (Feb 2018) Remove GlobalPreferences integration. https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalUserPage/+/415234 by @Samwilson, ref T188423.
- (Nov 2018) Remove User::load() call for performance. https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalUserPage/+/476778 by @MaxSem.
I checked both the regular and the reversed flame graph for the last 24h and GlobalUserPage doesn't show up there in the SpecialPage rendering subtree, nor anywhere else. 2022-06-06.excimer-wall.index.svgz

