Page MenuHomePhabricator

Language objects should only load messages when needed
Closed, ResolvedPublic

Description

Language objects should use lazy initialization for messages. Currently, creating a Language object means also loading all messages for that language into memory.

In some cases, e.g. with Wikibase, content in hundreds of languages needs to be shown on the same page. For each one, we want the Language object to determine the language's variants, LTR/RTL status, captialization rules, etc. But we don't need the actual messages. Currently, we can't zse the Language objects, because we run out of memory before they are all loaded.


Version: 1.21.x
Severity: normal

Details

Reference
bz41596

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:59 AM
bzimport set Reference to bz41596.
bzimport added a subscriber: Unknown Object (MLST).

This is a duplicate of a bug Amir recently created.

  • This bug has been marked as a duplicate of bug 41103 ***