Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 48e4bde9c8cf65a3e06b932522e17a97f6acc0c1
https://github.com/WebKit/WebKit/commit/48e4bde9c8cf65a3e06b932522e17a97f6acc0c1
Author: Dominic Mazzoni <[email protected]>
Date: 2024-06-11 (Tue, 11 Jun 2024)
Changed paths:
M Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp
M Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h
M Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h
Log Message:
-----------
AX: isolated tree nodes should store frequent bool attributes in a bitfield
https://bugs.webkit.org/show_bug.cgi?id=275113
rdar://129223343
Reviewed by Andres Gonzalez.
A lot of memory is wasted in AX isolated tree nodes storing boolean
attributes in an expensive HashMap. By storing some of the most common
ones in a bitfield we can save memory. The most rare ones are still a
good fit for the HashMap.
* Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp:
(WebCore::AXIsolatedObject::AXIsolatedObject):
(WebCore::AXIsolatedObject::setProperty):
(WebCore::AXIsolatedObject::boolAttributeValue const):
* Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h:
(WebCore::AXIsolatedObject::setPropertyFlag):
(WebCore::AXIsolatedObject::hasPropertyFlag const):
* Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h:
Canonical link: https://commits.webkit.org/279938@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