Closed
Bug 993282
Opened 11 years ago
Closed 11 years ago
Lazy load more js modules
Categories
(Firefox OS Graveyard :: Runtime, defect)
Tracking
(blocking-b2g:1.3T+, b2g-v1.3T fixed)
Tracking | Status | |
---|---|---|
b2g-v1.3T | --- | fixed |
People
(Reporter: fabrice, Assigned: fabrice)
References
Details
Attachments
(5 files)
9.14 KB,
application/zip
|
Details | |
3.79 KB,
patch
|
psiddh
:
review+
|
Details | Diff | Splinter Review |
5.47 KB,
patch
|
gwagner
:
review+
|
Details | Diff | Splinter Review |
4.95 KB,
patch
|
airpingu
:
review+
|
Details | Diff | Splinter Review |
959 bytes,
patch
|
gwagner
:
review+
|
Details | Diff | Splinter Review |
We can do better than the current state.
Here's the list of modules loaded in various processes before and after these patches.
I get around 300kb of USS reduction in the nuwa and preallocated processes.
Assignee | ||
Comment 1•11 years ago
|
||
part 1
Assignee | ||
Comment 2•11 years ago
|
||
part 2
Assignee | ||
Comment 3•11 years ago
|
||
part 3
Assignee | ||
Updated•11 years ago
|
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → All
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8403083 [details] [diff] [review]
less-modules.patch
Review of attachment 8403083 [details] [diff] [review]:
-----------------------------------------------------------------
Hi Sid, ignore the debugging change in XPCComponents.cpp
Attachment #8403083 -
Flags: review?(psiddh)
Assignee | ||
Updated•11 years ago
|
Attachment #8403084 -
Flags: review?(anygregor)
Assignee | ||
Updated•11 years ago
|
Attachment #8403086 -
Flags: review?(vyang)
Updated•11 years ago
|
Attachment #8403084 -
Flags: review?(anygregor) → review+
Attachment #8403083 -
Flags: review?(psiddh) → review+
Comment 5•11 years ago
|
||
Comment on attachment 8403086 [details] [diff] [review]
lazy-ril.patch
Review of attachment 8403086 [details] [diff] [review]:
-----------------------------------------------------------------
MobileMessageDB.jsm also imports ril_consts.js. We may do that as well in this bug.
::: dom/system/gonk/RILContentHelper.js
@@ +20,5 @@
> Cu.import("resource://gre/modules/DOMRequestHelper.jsm");
> Cu.import("resource://gre/modules/Services.jsm");
> Cu.import("resource://gre/modules/XPCOMUtils.jsm");
>
> +XPCOMUtils.defineLazyGetter(this, "RIL", function () {
I think you can just use:
XPCOMUtils.defineLazyModuleGetter(this, "RIL",
"resource://gre/modules/ril_consts.js");
@@ +455,5 @@
> },
> };
>
> function RILContentHelper() {
> + dump("YYY Starting RILContentHelper()\n");
Just a reminder. Please remove before landing.
@@ +515,5 @@
> updateDebugFlag: function updateDebugFlag() {
> try {
> + /*DEBUG = RIL.DEBUG_CONTENT_HELPER ||
> + Services.prefs.getBoolPref(kPrefRilDebuggingEnabled);*/
> + DEBUG = false;
Please remove this before landing.
::: dom/system/gonk/RadioInterfaceLayer.js
@@ +22,5 @@
> Cu.import("resource://gre/modules/Sntp.jsm");
> Cu.import("resource://gre/modules/systemlibs.js");
> Cu.import("resource://gre/modules/Promise.jsm");
>
> +XPCOMUtils.defineLazyGetter(this, "RIL", function () {
Ditto.
@@ +779,5 @@
> mdn: null
> };
>
> function RadioInterfaceLayer() {
> + dump("YYY Starting RadioInterfaceLayer()\n");
Ditto.
::: dom/telephony/gonk/TelephonyProvider.js
@@ +10,5 @@
> Cu.import("resource://gre/modules/XPCOMUtils.jsm");
> Cu.import("resource://gre/modules/Services.jsm");
> Cu.import("resource://gre/modules/Promise.jsm");
>
> +XPCOMUtils.defineLazyGetter(this, "RIL", function () {
Ditto.
Attachment #8403086 -
Flags: review?(vyang) → review+
Comment 6•11 years ago
|
||
After some thoughts, we cannot use defineLazyModuleGetter because "RIL" is not a valid export in ril_consts.js. Please keep the original use of defineLazyGetter. Thanks!
Assignee | ||
Comment 7•11 years ago
|
||
Hm, not sure what happened but Emulator mochitests are not happy... https://tbpl.mozilla.org/?tree=Try&rev=bed3b401ab04
Comment 8•11 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #7)
> Hm, not sure what happened but Emulator mochitests are not happy...
> https://tbpl.mozilla.org/?tree=Try&rev=bed3b401ab04
You can set [tarako only].
Updated•11 years ago
|
Flags: needinfo?(fabrice)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → fabrice
Flags: needinfo?(fabrice)
Assignee | ||
Comment 11•11 years ago
|
||
I had to back these out in https://hg.mozilla.org/integration/b2g-inbound/rev/7616388e078a for b2g emulator mochitest-3 failures: https://tbpl.mozilla.org/php/getParsedLog.php?id=39243929&tree=B2g-Inbound
Flags: needinfo?(fabrice)
Assignee | ||
Comment 13•11 years ago
|
||
Wes, I had a similar intermittent on try:
https://tbpl.mozilla.org/?tree=Try&rev=97995867b3c3
Do you mind restart the test?
Flags: needinfo?(fabrice)
Assignee | ||
Comment 14•11 years ago
|
||
I could not reproduce the failures locally so I pushed the 3 parts to try in succession:
Part 1:
https://tbpl.mozilla.org/?tree=Try&rev=b18479095aee
Parts 1 + 2:
https://tbpl.mozilla.org/?tree=Try&rev=325a4e34253f
Parts 1 + 2 + 3:
https://tbpl.mozilla.org/?tree=Try&rev=c716badf1e49
and of course, none of them fail in M3...
Assignee | ||
Comment 15•11 years ago
|
||
After discussion with RyanVM, re-landing:
remote: https://hg.mozilla.org/integration/b2g-inbound/rev/3dbd84a99ce8
remote: https://hg.mozilla.org/integration/b2g-inbound/rev/13ca7eb38c28
remote: https://hg.mozilla.org/integration/b2g-inbound/rev/254616e044b1
Comment 16•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3dbd84a99ce8
https://hg.mozilla.org/mozilla-central/rev/13ca7eb38c28
https://hg.mozilla.org/mozilla-central/rev/254616e044b1
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S1 (9may)
Assignee | ||
Comment 17•11 years ago
|
||
remote: https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/843e28374449
remote: https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/3862553bdea6
remote: https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/9c52f1e9a67d
status-b2g-v1.3T:
--- → fixed
Comment 18•11 years ago
|
||
Backed out for causing bug 1008357:
remote: https://hg.mozilla.org/integration/b2g-inbound/rev/cbf3e3160d8b
remote: https://hg.mozilla.org/integration/b2g-inbound/rev/9265b52eda3f
remote: https://hg.mozilla.org/integration/b2g-inbound/rev/548e11df4056
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 19•11 years ago
|
||
ni? Fabrice
Wonder if we are relanding this? thanks
Flags: needinfo?(fabrice)
Assignee | ||
Comment 20•11 years ago
|
||
(In reply to Joe Cheng [:jcheng] from comment #19)
> ni? Fabrice
> Wonder if we are relanding this? thanks
Not before the root cause of bug 1008357 is fixed. Note that we didn't backout on tarako.
Flags: needinfo?(fabrice)
Comment 21•11 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #20)
> (In reply to Joe Cheng [:jcheng] from comment #19)
> > ni? Fabrice
> > Wonder if we are relanding this? thanks
>
> Not before the root cause of bug 1008357 is fixed. Note that we didn't
> backout on tarako.
bug 1008357 is fixed.
Assignee | ||
Comment 22•11 years ago
|
||
(In reply to James Zhang from comment #21)
> (In reply to Fabrice Desré [:fabrice] from comment #20)
> > (In reply to Joe Cheng [:jcheng] from comment #19)
> > > ni? Fabrice
> > > Wonder if we are relanding this? thanks
> >
> > Not before the root cause of bug 1008357 is fixed. Note that we didn't
> > backout on tarako.
>
> bug 1008357 is fixed.
Well, the test failure was closed because we backed out this one. The underlying issue is still there.
Comment 23•11 years ago
|
||
Do we fix bug 1005120.
Assignee | ||
Comment 24•11 years ago
|
||
(In reply to James Zhang from comment #23)
> Do we fix bug 1005120.
I'd love that, but this is a different issue.
I filed bug 1015027 to unblock this bug.
Comment 25•11 years ago
|
||
Sprint 1 is finished so reassigning to the current sprint.
Target Milestone: 2.0 S1 (9may) → 2.0 S3 (6june)
Comment 26•11 years ago
|
||
Attachment #8433392 -
Flags: review?(anygregor)
Updated•11 years ago
|
Attachment #8433392 -
Flags: review?(anygregor) → review+
Comment 27•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2a6184672f1e
https://hg.mozilla.org/integration/mozilla-inbound/rev/41fe339ca4ea
https://hg.mozilla.org/integration/mozilla-inbound/rev/b9ca30286579
https://hg.mozilla.org/integration/mozilla-inbound/rev/b67f3001c73d
These patches were tested on the emulator-opt as part of the following Try push:
https://tbpl.mozilla.org/?tree=Try&rev=ca579e21501a
Comment 28•11 years ago
|
||
Comment 29•11 years ago
|
||
Filed bug 1024157 for master.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Comment 30•11 years ago
|
||
Is this patch land on v1.3t?
Comment 31•11 years ago
|
||
(In reply to James Zhang from comment #30)
> Is this patch land on v1.3t?
Yes it got landed according to comment 17. Comment 18 backed out the patch on inbound.
I also checked hg and it's in:
https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/log/174dfde44194/dom/contacts/fallback/ContactDB.jsm
You need to log in
before you can comment on or make changes to this bug.
Description
•