Closed
Bug 1332578
Opened 8 years ago
Closed 6 years ago
Caching info. on items from frame tree or DOM-tree may improve performance of painting
Categories
(Core :: Web Painting, defect)
Core
Web Painting
Tracking
()
People
(Reporter: sinker, Assigned: sinker)
References
(Blocks 1 open bug)
Details
(Keywords: perf, Whiteboard: [ps-radar])
Attachments
(2 files)
27.27 KB,
patch
|
Details | Diff | Splinter Review | |
2.11 KB,
patch
|
Details | Diff | Splinter Review |
When doing ProcessDisplayItems(), it would be forced to collect information from frame tree, styles, and nsIContent for every items. It is wasting time to access these memory and hurts CPU cache. The idea is to keep a copy of key information on items to reduce the overhead of memory access.
Assignee | ||
Comment 1•8 years ago
|
||
This patch caches the result of GetBounds() when items are wrapped by nsDisplayWrapList. This is just an experiment, not a best choice. The best choice is to cache the result when create items to get benefited by the fact that the relative data is already in CPU cache. Anyway, it shows an improvement of 5% on nsDisplayList::PaintRoot().
Assignee | ||
Comment 2•8 years ago
|
||
try this patch basing on getbounds.diff. Although getbounds.diff improves |PaintRoot()|, but it increases |nsIFrame::BuildDisplayListForStackingContext()|. This patch removes doing caching in |nsDisplayWrapList|, but do it for the first time that GetBoundsCache() has been called.
Updated•8 years ago
|
Assignee: nobody → tlee
Comment 3•8 years ago
|
||
Thinker, are you still working on this?
Updated•8 years ago
|
Whiteboard: [qf:p3]
Updated•8 years ago
|
Whiteboard: [qf:p3] → [qf:p3][ps-radar]
Updated•8 years ago
|
Flags: needinfo?(tlee)
Assignee | ||
Comment 4•8 years ago
|
||
I have some bugs relating to this one. They should block this one.
I will do it later.
Flags: needinfo?(tlee)
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(matt.woodrow)
Resolution: --- → WONTFIX
Updated•3 years ago
|
Performance Impact: --- → P3
Whiteboard: [qf:p3][ps-radar] → [ps-radar]
You need to log in
before you can comment on or make changes to this bug.
Description
•