https://bugzilla.wikimedia.org/show_bug.cgi?id=28119
Summary: Babel::getName() should cache its results, or
redundant calls be reduced.
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Babel
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
So as to generate an inner babel box for a language,
the static function getName($code, $language)
is called eleven (11) times with the same $code,
and $language (almost) alternating between the wiki
language code (for the tranlated name) and $code
(for the autonym, i.e. the language name in the
language itself)
Since the lookup is not at all "cheap", but may
involve several eries of disk accesses, it would be good
to cache previous results, or eleminate redundant calls.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l