https://bugzilla.wikimedia.org/show_bug.cgi?id=16497





--- Comment #7 from Brion Vibber <[email protected]>  2008-12-31 20:26:11 UTC 
---
Created an attachment (id=5634)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=5634)
Test patch against r45241 adding some debug lines checking mem usage

Here's the memory_get_usage() results I get on my installation during various
points of the rendering using this patch:

memory 1: 13744240 near start of special page
memory 2: 26570352 +13M after $wgMessageCache->loadAllMessages();
memory 3: 27037696
memory 4: 27037704 +0.5M after merging extensions, sorting to $sortedArray
memory 5: 31358432 +4M after creating $messages
memory 6: 33826000 +2.5M after rendering HTML output

By far the biggest memory-user is just loading all the message texts to begin
with, eating 13 megabytes. Yeowch! This is potentially hard to trim, as it
could require changing the localization infrastructure.

Building the array of sorted & transformed messages adds ~4 megabytes, and
another ~2.5 megabytes gets used up making the HTML output. These could be
reduced relatively easily by using a more compact rendering and/or doing some
paging.

(Your sizes will vary depending on system architecture, installed extensions,
and what's in your localized messages.)

If paging is done, we'll want a better integrated search, so it's still at
least as easy as now to find a particular message based on name or content
substring.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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

Reply via email to