Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 21a8c47f4202c17fa5801a519b191dc60f521c54 https://github.com/WebKit/WebKit/commit/21a8c47f4202c17fa5801a519b191dc60f521c54 Author: Jer Noble <jer.no...@apple.com> Date: 2025-08-29 (Fri, 29 Aug 2025)
Changed paths: M Source/WebCore/Modules/modern-media-controls/media/tracks-support.js Log Message: ----------- [Performance] Media controls ask for localized, sorted list of text tracks, only to check to see if the list is empty https://bugs.webkit.org/show_bug.cgi?id=298133 rdar://159479269 Reviewed by Ryan Reno. As a follow up to 299347@main, much of the CPU time spent by the main thread in the Media/VideoElementAddManyTextTracks.html test is spent generating a sorted, localized list of text tracks for use by the media controls. However the media controls don't actually use that sorted list for anything other than checking whether it's empty. Instead, the controls can just check whether the media element's textTracks or audioTracks lists are empty. This change further increases the performance of the VideoElementAddManyTextTracks.html peformance test; the a median iteration time is now 7.5ms, which is over 100x faster than prior to 299347@main. * Source/WebCore/Modules/modern-media-controls/media/tracks-support.js: (TracksSupport.prototype._canPickAudioTracks): (TracksSupport.prototype._canPickTextTracks): Canonical link: https://commits.webkit.org/299351@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes