Page MenuHomePhabricator

GlobalUserPageHooks::onTitleIsAlwaysKnown notably slows down Title::isKnown() calls
Closed, ResolvedPublic

Description

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?

flamegraph.png (2,384×972 px, 350 KB)

Event Timeline

Krinkle raised the priority of this task from to Medium.
Krinkle updated the task description. (Show Details)
Krinkle subscribed.
Krinkle set Security to None.
Krinkle removed a project: Performance-Team.
Krinkle added a subscriber: Legoktm.
MaxSem closed subtask Restricted Task as Resolved.Nov 30 2018, 7:51 PM
Krinkle closed this task as Resolved.EditedJun 7 2022, 3:58 PM
Krinkle claimed this task.
Krinkle added subscribers: Samwilson, aaron, MaxSem.

From T72585 in 2014 (before this task):

Change 169653 merged by jenkins-bot:
Updates after performance review

https://gerrit.wikimedia.org/r/169653

Change 170363 merged by jenkins-bot:
Further optimize displayGlobalPage()

https://gerrit.wikimedia.org/r/170363

After after this task, which removes most of what showed up in the flame graph above:

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

Screenshot 2022-06-07 at 16.59.11.png (2,374×804 px, 172 KB)