The performance bottleneck was in [TextTrackCueList::AddCue()](https://share.firefox.dev/3U5oHfL). After optimizing that function, I was able to achieve comparable performance—under 5ms—in my local debug build.
Bug 1974237 Comment 21 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The performance bottleneck was in [TextTrackCueList::AddCue()](https://share.firefox.dev/3U5oHfL). After optimizing that function, I was able to achieve comparable performance—from `~200ms` to `~5ms`—in my local debug build.
The performance bottleneck was in [TextTrackCueList::AddCue()](https://share.firefox.dev/3U5oHfL). After optimizing that function, I'm able to achieve comparable performance—from `~200ms` to `~5ms`—in my local debug build.