Page MenuHomePhabricator

Bug 1607836 - use SmallVec for render task dependencies. r=gw
ClosedPublic

Authored by nical on Jan 16 2020, 2:47 PM.

Details

Summary

The majority of render tasks have 0, 1 or 2 dependencies, except for pictures that typically have dozens to hundreds of dependencies. SmallVec with 2 inline elements avoids many tiny heap allocations in pages with a lot of text shadows and other types of render tasks.

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

nical created this revision.Jan 16 2020, 2:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2020, 2:47 PM
phab-bot requested review of this revision.Jan 16 2020, 2:47 PM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: Restricted Project.
gw accepted this revision.Jan 16 2020, 8:16 PM
gw added inline comments.
gfx/wr/webrender/src/render_task.rs
344

Could we also add the commit message as an inline comment here?

This revision is now accepted and ready to land.Jan 16 2020, 8:16 PM
nical updated this revision to Diff 218911.Jan 16 2020, 9:18 PM

Revision updated.