Anomie added a comment.
I tried the following via shell.php to get some idea of the timing.
$t0 = microtime( true );
foreach ( Language::fetchLanguageNames() as $code => $name ) {
Language::getFallbacksFor( $code, Language::STRICT_FALLBACKS );
}
$t1 = microtime( true );
On mwmaint1002, it took 0.04s. On my laptop, it took 148.14s for the first
run, and 1.56s for a second, and back to 141s after I deleted the files in
`$wgCacheDirectory`.
What I'm tempted to do is add a `meta=languageinfo` module, taking a list of
language codes, to return information about arbitrary languages, and apply
continuation after it has used a total of 2 seconds.
TASK DETAIL
https://phabricator.wikimedia.org/T217239
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Anomie
Cc: gerritbot, Mvolz, Anomie, Lucas_Werkmeister_WMDE, Pintoch, Aklapper,
CucyNoiD, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22,
Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113,
Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6,
QZanden, LawExplorer, Sethakill, Lewizho99, Maathavan, dg711, _jensen,
rosalieper, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, jayvdb,
Arrbee, KartikMistry, Mbch331, Jay8g, Legoktm
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs