https://bugzilla.wikimedia.org/show_bug.cgi?id=55952
Web browser: ---
Bug ID: 55952
Summary: $title->getPageLanguage not cached at all, called
thousands of times on the same title
Product: MediaWiki
Version: 1.22-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Internationalization
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 13529
--> https://bugzilla.wikimedia.org/attachment.cgi?id=13529&action=edit
profiling output from Commons:Featured_picture_candidates/Log/October_2013
Patch awaiting review at gerrit change 90769
$title->getPageLanguage() gets called a lot (sometimes in the thousands of
calls). Usually for the same page. This calls a hook, which can be somewhat
expensive. There should be an in-process cache for it.
In particular, for
https://commons.wikimedia.org/wiki/Commons:Featured_picture_candidates/Log/October_2013
we have the following profiling lines:
22.42% 12.819275 5118 - hook: PageContentLanguage
20.58% 11.766860 5118 - PageTranslationHooks::onPageContentLanguage
There may be more things that can be optimized for that page perhaps. I
included some profiling data as an attachment.
For original context see
https://commons.wikimedia.org/w/index.php?title=User_talk:Daniel78&oldid=107548310#Bot_doesn.27t_close_new_nominations
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l