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.
Details
Details
- Reviewers
gw - Commits
- rMOZILLACENTRALdb0378df4c66: Bug 1607836 - use SmallVec for render task dependencies. r=gw
- Bugzilla Bug ID
- 1607836
Diff Detail
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
| gfx/wr/webrender/src/render_task.rs | ||
|---|---|---|
| 344 | Could we also add the commit message as an inline comment here? | |