Closed Bug 1089459 Opened 11 years ago Closed 11 years ago

[Settings] Performance regression on bug 1066830

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.1+, b2g-v2.1 verified, b2g-v2.2 unaffected)

VERIFIED FIXED
2.1 S8 (7Nov)
blocking-b2g 2.1+
Tracking Status
b2g-v2.1 --- verified
b2g-v2.2 --- unaffected

People

(Reporter: arthurcc, Assigned: eragonj)

References

Details

Attachments

(2 files)

Calling to mozApps.mgmt.getAll in the init function leads to performance regression. We should consider move the call to the callback of an idle observer.
[Blocking Requested - why for this release]: We should fix the performance regression.
blocking-b2g: --- → 2.1?
Triage: perf regression blocking.
blocking-b2g: 2.1? → 2.1+
Assignee: nobody → arthur.chen
Assignee: arthur.chen → ejchen
Attached file patch on v2.1
Arthur, in this patch, I postpone the init() timing on root/panel.js and in this way, we can make sure the initializing work would only be done after idling for 4s. And for master, I already filed another bug 1086167 which would remove all places using mgmt.getAll(), so for this bug, only 2.1 patch would be included.
Attachment #8514822 - Flags: review?(arthur.chen)
For master, I will fix it on bug 1086167 (I already filed this bug to track this work 1 week earlier, so let's track there).
See Also: → 1086167
Comment on attachment 8514822 [details] [review] patch on v2.1 r=me, thanks!
Attachment #8514822 - Flags: review?(arthur.chen) → review+
Comment on attachment 8514822 [details] [review] patch on v2.1 [Approval Request Comment] [Bug caused by] (feature/regressing bug #): [User impact] if declined: Performance statistics would be a little bit bad on Datazilla [Testing completed]: Related codes have its own tests already, in this patch, we just postpone the initialization timing. [Risk to taking this patch] (and alternatives if risky): low [String changes made]: no For master, because we already have new cache mechanism to reduce performance problems, I would fix it on another bug and please check "See also" field about it.
Attachment #8514822 - Flags: approval-gaia-v2.1?
Attachment #8514822 - Flags: approval-gaia-v2.1? → approval-gaia-v2.1+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Unable to verify as it is a back-end issue.
QA Whiteboard: [QAnalyst-Triage?][QAnalyst-verify-]
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage?][QAnalyst-verify-] → [QAnalyst-Triage+][QAnalyst-verify-]
Flags: needinfo?(ktucker)
Hi, This bug has been verified successfully on Flame v2.1. See attachment: verified_v2.1.MP4 Reproducing rate: 0/5 Flame 2.1 version: Gaia-Rev 8ae086c39011bc8842b2a19bb5267906fa22345a Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/ebbd5c65c3c1 Build-ID 20141124094013 Version 34.0 Device-Name flame FW-Release 4.4.2 FW-Incremental eng.cltbld.20141124.130744 FW-Date Mon Nov 24 13:07:55 EST 2014 Bootloader L1TC00011880
Status: RESOLVED → VERIFIED
Target Milestone: --- → 2.1 S8 (7Nov)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: