Bug 258869

Summary: [MSE] Reuse "fudge factor" when samples are removed
Product: WebKit Reporter: Przemyslaw Gorszkowski <pgorszkowski>
Component: New BugsAssignee: Przemyslaw Gorszkowski <pgorszkowski>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Przemyslaw Gorszkowski 2023-07-05 01:35:06 PDT
Currently when TrackBuffer::removeSamples is called and erasedRanged is created from the samples, removing small gaps between samples are not done. It causes that in some cases many separated ranges are created which has impact on performance of removing samples.

It can be fixed in similar way as it is done in SourceBufferPrivate::processMediaSample when range is extended with new sample and "fudge factor" is used to eliminate the small gaps between samples.
Comment 1 Przemyslaw Gorszkowski 2023-07-10 04:11:45 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15690
Comment 2 Radar WebKit Bug Importer 2023-07-12 01:36:18 PDT
<rdar://problem/112126969>
Comment 3 EWS 2023-07-27 07:22:00 PDT
Committed 266357@main (c3bf8dd55448): <https://commits.webkit.org/266357@main>

Reviewed commits have been landed. Closing PR #15690 and removing active labels.