Closed
Bug 1196109
Opened 11 years ago
Closed 11 years ago
keep memory allocation for mixed input channel pointer array
Categories
(Core :: Web Audio, defect)
Core
Web Audio
Tracking
()
RESOLVED
FIXED
mozilla43
| Tracking | Status | |
|---|---|---|
| firefox43 | --- | fixed |
People
(Reporter: karlt, Assigned: karlt)
References
Details
Attachments
(1 file, 1 obsolete file)
|
4.65 KB,
patch
|
padenot
:
review+
|
Details | Diff | Splinter Review |
Keeping a chunk for AudioNodeStream input saves on memory allocations for the channel pointer arrays and can sometimes mean that an input buffer can be reused without reallocation for mixing in the next iteration.
| Assignee | ||
Comment 1•11 years ago
|
||
This saves about 10% on simple gain and upmix/downmix benchmarks but some of
the benefit in the benchmarks depends on (and is addition to the benefits
from) bug 1196108.
Attachment #8649687 -
Flags: review?(padenot)
| Assignee | ||
Comment 2•11 years ago
|
||
This version does the release logic in AudioChunk::ReleaseBufferIfShared()
to support bug 1197028 also.
The length of the channel pointer arrays are now set to zero to make it clear
that the pointers are no longer safe to use.
Attachment #8650799 -
Flags: review?(padenot)
| Assignee | ||
Updated•11 years ago
|
Attachment #8649687 -
Attachment is obsolete: true
Attachment #8649687 -
Flags: review?(padenot)
Updated•11 years ago
|
Attachment #8650799 -
Flags: review?(padenot) → review+
| Assignee | ||
Updated•11 years ago
|
Flags: in-testsuite-
Comment 4•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•