DescriptionTweak the TextTrackCue "cue index" management
Change the invalidation function to instead of updating the cached cue
indices, update an index to the first invalid index stored in the list
itself.
Use this "first invalid index" to check if a cached index is valid or
not, and if it isn't then validate all the list's cues cached indices
starting at the stored index.
This means invalidation is faster than before (constant time), and
valid is worst case the same, but with chance of amortization.
BUG=321654
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190948
Patch Set 1 #
Total comments: 8
Patch Set 2 : Invalidate cached cue index on removal from list. #Patch Set 3 : nits #Patch Set 4 : Nits(2). #Patch Set 5 : Rebase. #
Messages
Total messages: 12 (3 generated)
|