Closed
Bug 1479309
Opened 7 years ago
Closed 7 years ago
Don't load shield-content-frame.js until needed
Categories
(Firefox :: Normandy Client, enhancement)
Firefox
Normandy Client
Tracking
()
RESOLVED
FIXED
Firefox 63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: kmag, Assigned: kmag)
References
(Blocks 1 open bug)
Details
(Whiteboard: [overhead:7k])
Attachments
(1 file)
shield-content-frame.js is only needed in content processes when an event received from a shield page. It's only ever really needed when about:studies has been loaded in a process, but the quickest path to getting rid of it it is just loading it when we get a "ShieldPageEvent" event in a frame script.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8995828 [details]
Bug 1479309: Don't load shield-content-frame.js until needed.
https://reviewboard.mozilla.org/r/260166/#review267386
Thanks!
Also, since this is blocking the memshrink bug, I'm curious if you've profiled how much memory these changes save? If you haven't already profiled it, don't worry about. I'm sure the the changes are worth it, I'm just curious.
Attachment #8995828 -
Flags: review?(mcooper) → review+
Assignee | ||
Comment 4•7 years ago
|
||
(In reply to Michael Cooper [:mythmon] from comment #3)
> Also, since this is blocking the memshrink bug, I'm curious if you've
> profiled how much memory these changes save? If you haven't already profiled
> it, don't worry about. I'm sure the the changes are worth it, I'm just
> curious.
See whiteboard. According to dominator tree analysis, this frame script uses about 7K in a process with a single tab (more for processes with multiple tabs). In practice, actual savings tend to be slightly more than that tool reports, though.
Updated•7 years ago
|
Component: General → Normandy Client
Product: Shield → Firefox
Assignee | ||
Comment 5•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2d46e1fe31214d36d1e11218deb44423baee2c26
Bug 1479309: Don't load shield-content-frame.js until needed. r=mythmon
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Backout by csabou@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/fe6020e5c9d9
Backed out 12 changesets (bug 1479309, bug 1479312, bug 1479313, bug 1479310, bug 1479235, bug 1479945, bug 1479241, bug 1479318) for causing a big performance regression on OS X. a=backout
Comment 8•7 years ago
|
||
Backed out for causing a big performance regression on OS X and as request by igoldan.
https://hg.mozilla.org/mozilla-central/rev/fe6020e5c9d901a40fa2e7ea2f1ab2a36bf6d856
Status: RESOLVED → REOPENED
status-firefox63:
fixed → ---
Flags: needinfo?(kmaglione+bmo)
Resolution: FIXED → ---
Target Milestone: Firefox 63 → ---
Assignee | ||
Comment 9•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a396e7027858121f002ff1544fd28fabe5996685
Bug 1479309: Don't load shield-content-frame.js until needed. r=mythmon
Comment 10•7 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(kmaglione+bmo)
You need to log in
before you can comment on or make changes to this bug.
Description
•