Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 193ee7e0edfb5e3422eda0fb56a05e192f600be6
https://github.com/WebKit/WebKit/commit/193ee7e0edfb5e3422eda0fb56a05e192f600be6
Author: Simon Fraser <[email protected]>
Date: 2025-04-25 (Fri, 25 Apr 2025)
Changed paths:
M Source/WebCore/page/Page.cpp
M Source/WebKit/UIProcess/DisplayLink.cpp
M Source/WebKit/UIProcess/DisplayLink.h
M Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm
Log Message:
-----------
Use inline capacity in some vectors
https://bugs.webkit.org/show_bug.cgi?id=292075
rdar://150055845
Reviewed by Sammy Gill.
Use inline capacity in a few places to avoid allocations.
* Source/WebCore/page/Page.cpp:
(WebCore::Page::forEachDocumentFromMainFrame): 8 chosen based on testing a few
reasonably behaved web pages.
(WebCore::Page::forEachRenderableDocument const): Ditto.
* Source/WebKit/UIProcess/DisplayLink.cpp: There is usually only one observer.
(WebKit::DisplayLink::notifyObserversDisplayDidRefresh):
* Source/WebKit/UIProcess/DisplayLink.h:
* Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm:
(WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree): Space for 16
changed layers seems reasonable.
Canonical link: https://commits.webkit.org/294134@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes