Closed Bug 1710979 Opened 3 years ago Closed 3 years ago

Store scene clip instances in a separate array

Categories

(Core :: Graphics: WebRender, task)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: gw, Assigned: gw)

Details

Attachments

(1 file)

No description provided.

Previously, these were stored as a SmallVec<2> within each
defined clip template. However, this leads to inefficient
memory usage for most cases.

This is particularly noticeable on youtube.com, which currently
defines a large number of clips.

With this patch, the allocated memory for clips in the display
list drops from ~820 kB to ~450 kB (we should also investigate
and reduce the number of clips defined on this page too).

Assignee: nobody → gwatson
Status: NEW → ASSIGNED
Pushed by gwatson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c7dbe2f9a760 Store scene clip instances in a separate array r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: