Closed
Bug 844009
Opened 12 years ago
Closed 1 years ago
Investigate not cleaning up BACKGROUND_HOMESCREEN resources
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: cjones, Unassigned)
References
Details
(Keywords: perf, Whiteboard: [tech-p2])
The two places we do extra work when the homescreen goes to the background are
- here [1]. This may toss out some caches and initiate what should be light collection of dead objects.
- here [2]. This will throw out all "onscreen" graphics resources.
If we can get better performance by conditioning these on BACKGROUND_HOMESCREEN, we should consider doing that evaluated against negative consequences.
[1] http://mxr.mozilla.org/mozilla-central/source/dom/ipc/ProcessPriorityManager.cpp#571
[2] http://mxr.mozilla.org/mozilla-central/source/layout/base/nsPresShell.cpp?force=1#9164
Comment 1•12 years ago
|
||
> If we can get better performance by conditioning these on BACKGROUND_HOMESCREEN
What is/are the performance metric/s you're interested in here? Is it just "time between pressing the home button and the homescreen showing," or is it something else?
Reporter | ||
Comment 2•12 years ago
|
||
That's the main one.
Comment 3•12 years ago
|
||
If we can, we should profile what the homescreen is doing after you press the home button. Is it actually spending a lot of time decoding images? I don't think the minimize-memory-usage is throwing anything significant away other than images, in this case, but maybe it is, and hopefully we'd see that in the profile.
Reporter | ||
Comment 4•12 years ago
|
||
Agreed; note, this is an "Investigate ..." bug, not a "Fix ..." one.
Reporter | ||
Updated•12 years ago
|
Blocks: b2g-v-next
Reporter | ||
Comment 5•12 years ago
|
||
Might be a nice user-perceivable win in prime real estate, but not proven out yet.
Whiteboard: [tech-p2]
Comment 6•12 years ago
|
||
I guess this better applies to this Bug:
(Florian Bender from Last Comment Bug 823284 comment #11)
> How about capturing the complete last known state of the Homescreen and save
> it as one big image. Then show this image when returning to the homescreen
> until everything else is ready. Is this sensible at all? Will this help?
> Will this reduce or increase memory usage (Note: we may be able to discard
> even more mem data because we have a "saved state" the User sees before
> everything needs to be reparsed/recalculated/repainted)?
>
> This may actually work for all apps. And I think iOS does this (at least
> with some apps).
Updated•2 years ago
|
Severity: normal → S3
Updated•1 years ago
|
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Updated•1 years ago
|
Status: NEW → RESOLVED
Closed: 1 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•