Closed
Bug 957913
Opened 12 years ago
Closed 12 years ago
Make Load Settings Connectivity.js::Init Async for Performance Improvements
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect, P1)
Tracking
(blocking-b2g:1.3+, b2g-v1.3 fixed, b2g-v1.3T fixed, b2g-v1.4 fixed)
People
(Reporter: mchang, Assigned: mchang)
References
Details
(Keywords: perf, Whiteboard: [c=handeye p=2 s= u=])
Attachments
(3 files, 2 obsolete files)
The Connectivity.js::Init takes 28 ms to execute. Async load sub-parts to improve performance and spread the work over a few more seconds and back loaded on the event loop. This allows the layout engine to rasterize more frequently and improve startup settings scrolling performance.
Assignee | ||
Comment 1•12 years ago
|
||
After the initial load, we see that we spend 28 ms in Connectivity.js::Init
Comment 2•12 years ago
|
||
This is also necessary for 922658, and one of the harder things to lazy load.
Blocks: 922658
Assignee | ||
Comment 3•12 years ago
|
||
Assignee | ||
Comment 4•12 years ago
|
||
We go from 28ms to 7 ms for the wifi portion of the init() method to be detectable by the profiler. We also see that the next frame is rendered 63 ms later rather than 108 ms, which should save us ~45 ms of jank.
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #8357568 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #8357592 -
Flags: review?(kaze)
Comment 6•12 years ago
|
||
Comment on attachment 8357592 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/15129
The bug title might be confusing…
This patch does not lazy-load connectivity.js, it just makes the initialization asynchronous. If that’s what we want then it’s fine (see my nits on the PR though).
Assignee | ||
Updated•12 years ago
|
Summary: Lazy Load Settings Connectivity.js::Init for Performance Improvements → Make Load Settings Connectivity.js::Init Async for Performance Improvements
Assignee | ||
Comment 7•12 years ago
|
||
Fixed the bugs and the title.
Attachment #8357592 -
Attachment is obsolete: true
Attachment #8357592 -
Flags: review?(kaze)
Attachment #8357976 -
Flags: review?(kaze)
Comment 8•12 years ago
|
||
Comment on attachment 8357976 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/15164
Thanks for clarifying. :-)
Attachment #8357976 -
Flags: review?(kaze) → review+
Assignee | ||
Comment 9•12 years ago
|
||
Landed.
Uplifted to v1.3: 38f9d70fe6bec760a56271a4789e63f202440919
Assignee | ||
Comment 10•11 years ago
|
||
Requesting v1.3+ status as this solved bug 951221.
blocking-b2g: --- → 1.3?
Updated•11 years ago
|
blocking-b2g: 1.3? → 1.3+
Updated•11 years ago
|
status-b2g-v1.3T:
--- → fixed
status-b2g-v1.4:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•