Closed Bug 936651 Opened 11 years ago Closed 6 years ago

[Settings] Increase Garbage Collect-ability of ListViews and Observables

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gnarf, Unassigned)

References

Details

Currently, ListView creates many cyclic dependencies between the underlying model and the view itself, meaning it is almost impossible to garbage collect.  Most of this memory should disappear if the Element is ever removed from the DOM, but because of how things are stored, the references will stick around forever.  Adding .destroy as bug #936643 will do will get us a good part of the way there, but it should be possible to automatically do this if the Element disappears from the DOM.  Some clever uses of WeakMap in ListView and Observable should be able to fix this.

This wasn't really a problem until bug #933167 because we never had ListView's that got created and destroyed.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.