Closed
Bug 1055407
Opened 11 years ago
Closed 11 years ago
Speed up frequently called GetLength() on SourceBufferResource
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: kinetik, Assigned: kinetik)
Details
Attachments
(1 file)
|
2.59 KB,
patch
|
cajbir
:
review+
|
Details | Diff | Splinter Review |
GetLength() is called fairly frequently and the existing implementation is O(n). It's simple to cache a logical length that's updated as new data is appended and return that.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8474960 -
Flags: review?(cajbir.bugzilla)
| Assignee | ||
Updated•11 years ago
|
Attachment #8474960 -
Attachment description: Accumlate SBR length rather than recomputing on each call. → Accumulate SBR length rather than recomputing on each call.
Updated•11 years ago
|
Attachment #8474960 -
Flags: review?(cajbir.bugzilla) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•