Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5521eb299be3eb908c1855efbf1b2234900c4410
https://github.com/WebKit/WebKit/commit/5521eb299be3eb908c1855efbf1b2234900c4410
Author: Etienne Segonzac <[email protected]>
Date: 2025-05-05 (Mon, 05 May 2025)
Changed paths:
M
Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeInteractionRegionLayers.mm
Log Message:
-----------
Reduce the amount of String allocations in `updateLayersForInteractionRegions`
https://bugs.webkit.org/show_bug.cgi?id=292286
<rdar://150275553>
Reviewed by Abrar Rahman Protyasha.
Instead of storing the InteractionRegion group name (String) on the
layer for reuse, use the ElementIdentifier's raw value instead.
The group name has been only derived from the ElementIdentifier for a
while.
*
Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeInteractionRegionLayers.mm:
(WebKit::createInteractionRegionLayer):
(WebKit::interactionRegionElementIdentifierForLayer):
Store / read the identifier instead of the group name on the layer.
(WebKit::interactionRegionGroupNameForLayer): Deleted.
(WebKit::updateLayersForInteractionRegions):
Build the reusable layers hash map without Strings.
Fix a small double hashing issue.
Update the reuse code.
Canonical link: https://commits.webkit.org/294526@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