Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AX: AccessibilityRole is 3 bytes too large, wasting memory
https://bugs.webkit.org/show_bug.cgi?id=273786 rdar://problem/127616693 Reviewed by Chris Fleizach. AccessibilityRole is stored as a member variable on AccessibilityObject (m_role) and AccessibilityNodeObject (m_ariaRole), and the average web page has lots of these objects. This patch resizes it from 4 bytes (the default enum class type is int) down to 1 byte. This saves ~3.4mb on http://html.spec.whatwg.org (567769 objects * 6 bytes saved each). * Source/WebCore/accessibility/AXCoreObject.h: * Source/WebCore/accessibility/atspi/AccessibilityAtspi.h: Canonical link: https://commits.webkit.org/278487@main
- Loading branch information