Last modified: 2012-11-02 11:41:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43596, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41596 - Language objects should only load messages when needed
Language objects should only load messages when needed
Status: RESOLVED DUPLICATE of bug 41103
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.21.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-31 17:11 UTC by Daniel Kinzler
Modified: 2012-11-02 11:41 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2012-10-31 17:11:57 UTC
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.
Comment 1 Siebrand Mazeland 2012-10-31 22:27:16 UTC
This is a duplicate of a bug Amir recently created.
Comment 2 Andre Klapper 2012-11-02 11:41:09 UTC

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links