Reduce VisualEditor's memory usage
Open, HighPublic0 Story Points

Description

Editing of large pages can use a significant amount of memory; a spotcheck that Max did on [[United States]] showed an increase of 121MB usage in Chrome while editing the page.

This is a concern for us for mobile in particular, as today's mobile devices have the amount of memory of computers from several years ago -- most have 1GB or 512MB (or even less), which has to house the operating system, background apps, the web browser, and the *entire* article with a richly annotated DOM.

Possible techniques for reducing memory usage were proposed at the VE mobile meeting yesterday:

  • Section editing -- if we only have to load up a single section at a time, large pages won't use up nearly as much memory. Note that on mobile we already divide the page up into sections surrounded by <div>s that can be replaced with the editable surface; the other sections on page might not even be open.
  • Limit full annotation processing to areas under active editing -- apparently it should be possible to delay some of the HTML processing on sections or even paragraphs that have not yet been edited. This might also save memory, but needs to be looked into.

Version: unspecified
Severity: enhancement

Details

Reference
bz53825

Related Objects

bzimport raised the priority of this task from to High.
bzimport set Reference to bz53825.
brion created this task.Sep 5 2013, 8:01 PM

Not sure this is a Mobile-specific bug, but yes, very important to make progress here. I think there's likely to be some produce trade-offs that are more appropriate for the Mobile than Desktop experience, though, so certainly some of it will be…

brion added a comment.Sep 5 2013, 9:10 PM

Feel free to move this to 'general' and we'll hang some mobile-specific bugs off it that are more directly actionable.

(In reply to comment #2)

Feel free to move this to 'general' and we'll hang some mobile-specific bugs
off it that are more directly actionable.

{{Done}}

Jdforrester-WMF moved this task from Backlog to TR7: ???? on the VisualEditor board.
Jdforrester-WMF renamed this task from VisualEditor: Reduce memory usage to Reduce VisualEditor's memory usage.Dec 2 2014, 9:58 PM
Jdforrester-WMF set Security to None.

Feel free to move this to 'general' and we'll hang some mobile-specific bugs off it that are more directly actionable.

Have any mobile-specific bugs been identified since 09/2013? Adding task numbers is welcome.

Elitre added a subscriber: Elitre.Feb 11 2015, 8:28 PM

More specific criteria and numbers are welcome / required here.
Also, should the "Epic" tag be added here?

This is a high-level tracker bug rather than a blocker; it needs child bugs with more specifics to be nominated as blockers. Consequently, we decided to remove it from the Q3 blockers list at the triage on 2015-02-11.