Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AX: Pre-size AXIsolatedObject::m_propertyMap to avoid unnecessary Has…
…hTable reallocations https://bugs.webkit.org/show_bug.cgi?id=249873 rdar://problem/103687278 Reviewed by Chris Fleizach. Use reserveInitialCapacity to give AXIsolatedObject::m_propertyMap an initial size to help avoid unnecessary HashTable reallocations. These HashTable reallocations showed up in `sample`s when using VoiceOver on popular websites. This patch also removes AXPropertyName::TagName since it's not used on the Mac platform for any AX-client facing functionality (and Mac is the only platform that enables isolated tree mode). * Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp: (WebCore::AXIsolatedObject::AXIsolatedObject): (WebCore::AXIsolatedObject::initializeProperties): (WebCore::AXIsolatedObject::tagName const): * Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h: * Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h: Canonical link: https://commits.webkit.org/258328@main
- Loading branch information
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters