Speed up the picture caching pre_update/post_update in frame building
Categories
(Core :: Graphics: WebRender, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: nical, Assigned: nical)
References
(Blocks 1 open bug)
Details
Attachments
(6 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Profiling the test cases from bug 1512789 and bug 1527964, I see a non-trivial amount of frame building time spent in picture caching related code. In particular, TileCacheInstance pre_update
and post_update
stand out with a lot of hash map insertion causing reallocation and memcpys. These two add up to between 10% and 28% of total frame building time on the profiled test cases.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D56406
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D56407
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D56408
Assignee | ||
Comment 5•4 years ago
|
||
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D56426
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7f28f9e9ec25 Avoid reallocating opacity bindings and tiles hash maps in TileCacheInstance. r=gw https://hg.mozilla.org/integration/autoland/rev/afdbc1744519 Avoid reallocaitng spatial nodes hash map. r=gw https://hg.mozilla.org/integration/autoland/rev/116c84612571 Avoid reallocating the tile compare cache each rame. r=gw https://hg.mozilla.org/integration/autoland/rev/59cfb8104165 Recycle some hash map allocations after scene swap. r=gw https://hg.mozilla.org/integration/autoland/rev/1f03147b3854 Avoid unnecessary vector allocations when splitting the tile cache. r=gw https://hg.mozilla.org/integration/autoland/rev/98758fb91218 Prevent recycled hash maps from growing indefinitely. r=gw
Comment 8•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7f28f9e9ec25
https://hg.mozilla.org/mozilla-central/rev/afdbc1744519
https://hg.mozilla.org/mozilla-central/rev/116c84612571
https://hg.mozilla.org/mozilla-central/rev/59cfb8104165
https://hg.mozilla.org/mozilla-central/rev/1f03147b3854
https://hg.mozilla.org/mozilla-central/rev/98758fb91218
Description
•