Closed
Bug 1383055
Opened 7 years ago
Closed 7 years ago
Avoid a heap allocation per event during playback of blob images
Categories
(Core :: Graphics: WebRender, enhancement)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: jrmuizel)
References
Details
Attachments
(2 files)
5.16 KB,
patch
|
lsalzman
:
review+
|
Details | Diff | Splinter Review |
3.75 KB,
patch
|
lsalzman
:
review+
|
Details | Diff | Splinter Review |
The heap allocation is not needed and not doing it will also help reduce contention with other threads.
Assignee | ||
Comment 1•7 years ago
|
||
This will let us avoid duplicating the event list for the upcoming DoWithEvent function.
Assignee: nobody → jmuizelaar
Attachment #8888787 -
Flags: review?(lsalzman)
Assignee | ||
Comment 2•7 years ago
|
||
Add DoWithEvent which switches over an event type, reads the event into a stack variable and calls a callable with that event as a parameter. This avoids doing a heap allocation for every event that we play back.
Attachment #8888792 -
Flags: review?(lsalzman)
Updated•7 years ago
|
Attachment #8888792 -
Flags: review?(lsalzman) → review+
Updated•7 years ago
|
Attachment #8888787 -
Flags: review?(lsalzman) → review+
Updated•7 years ago
|
Blocks: stage-wr-nightly
Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f148f75bfc05 Factor out a FOR_EACH_EVENT macro. r=lsalzman https://hg.mozilla.org/integration/mozilla-inbound/rev/8b5cf7fc54bf RecordedEvent: Add DoWithEvent. r=lsalzman
Comment 4•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f148f75bfc05 https://hg.mozilla.org/mozilla-central/rev/8b5cf7fc54bf
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•