Closed
Bug 835641
Opened 12 years ago
Closed 12 years ago
Lots of UpdateDimensions calls being sent
Categories
(Core :: General, defect)
Tracking
()
People
(Reporter: cjones, Assigned: cjones)
References
Details
(Whiteboard: [FFOS_perf])
Attachments
(1 file)
2.58 KB,
patch
|
roc
:
review+
overholt
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
I see flurries of 20 or so of these guys at a time while running with a logging patch applied. This may be TabParent viewing inconsistent layout state.
All of the dimensions being sent must be the same, because there's no visual change. Looks like a reflow triggered by the time changing or something.
We /should/ be smart enough to avoid reflow in the content process when the dimensions don't change, but that's a bit dangerous, and the overhead of sending the IPC's and waking up the various processes is not free either.
So we should cache dimensions in TabParent and skip forwarding these messages when possible. We already cache part of the needed info.
Assignee | ||
Comment 1•12 years ago
|
||
Actually a lot of this is happening on a critical startup path.
Blocks: 834622
Assignee | ||
Comment 2•12 years ago
|
||
Going to confirm with my logging that this is actually having the intended effect ...
Assignee: nobody → jones.chris.g
Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 707393 [details] [diff] [review]
Don't SendUpdateDimensions() when they haven't changed
It do.
Attachment #707393 -
Flags: review?(roc)
Attachment #707393 -
Flags: review?(roc) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Guys, this bug could be causing numerous spurious wakeups in content processes in some cases, which might be dinging power numbers.
Comment 5•12 years ago
|
||
Vasanth, can you please get an eng build to the power guys w/ this patch to see if this helps with some of the wake-ups they are seeing?
Flags: needinfo?(vasanth)
Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Comment 9•12 years ago
|
||
Chris, do we want to uplift that?
Assignee | ||
Comment 10•12 years ago
|
||
Comment on attachment 707393 [details] [diff] [review]
Don't SendUpdateDimensions() when they haven't changed
Yes.
This is a safe patch that removes unnecessary work from app startup and will prevent a lot of unnecessary process wakeups, which might be contributing to a power-usage problem.
Attachment #707393 -
Flags: approval-mozilla-b2g18?
Updated•12 years ago
|
Attachment #707393 -
Flags: approval-mozilla-b2g18? → approval-mozilla-b2g18+
Comment 11•12 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → affected
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Comment 13•12 years ago
|
||
(In reply to Michael Vines [:m1] [:evilmachines] from comment #12)
> Should we land this on v1.0.0 too?
Is this a blocker for you? If so, then we'll tef+.
Comment 14•12 years ago
|
||
Yes please, based on comment 10
Updated•12 years ago
|
blocking-b2g: tef? → tef+
Updated•12 years ago
|
Attachment #707393 -
Flags: checkin?(ryanvm)
Updated•12 years ago
|
Attachment #707393 -
Flags: checkin?(ryanvm)
Comment 15•12 years ago
|
||
status-b2g18-v1.0.1:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•