Closed Bug 883011 Opened 6 years ago Closed 6 years ago

Optimize PrepareUpdatesToMainThread to avoid re-allocating memory as much as possible

Categories

(Core :: Web Audio, defect)

x86
macOS
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: Ehsan, Assigned: Ehsan)

References

Details

Attachments

(1 file)

See bug 882543 comment 7.
Assignee: nobody → paul
Attached patch Patch (v1)Splinter Review
Clang can't properly inline the EnsureCapacity call inside MoveElementsFrom.  But the mPendingUpdateRunnables array is always empty for Web Audio, so this optimization makes sense.
Assignee: paul → ehsan
Status: NEW → ASSIGNED
Attachment #764518 - Flags: review?(roc)
https://hg.mozilla.org/mozilla-central/rev/deed7fb2834e
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.