Closed Bug 1654279 Opened 1 year ago Closed 1 year ago

Avoid allocating in ClipChainStack::push_surface

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It shows up in profiles a bit and looks easy to improve.

For one we are copying the shared_clips vector with to_vec before discarding it, we can trivially remove this copy. We can also preallocate shared_clips to avoid reallocations in the loop.

Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED
Pushed by nsilva@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2c899cf4c756
Avoid some allocations in ClipChainStack::push_surface. r=gw
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.