1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

LibWeb: Share QualifiedName data between identical instances

Adopt the same pattern as AK::FlyString, reducing sizeof(QualifiedName)
to the size of a pointer.

This reduces the size of DOM::Element by 24 bytes.
This commit is contained in:
Andreas Kling 2022-02-19 12:31:39 +01:00
parent 4b900bc100
commit cf5eeb9f4b
3 changed files with 92 additions and 28 deletions

View file

@ -84,6 +84,7 @@ set(SOURCES
DOM/ParentNode.cpp
DOM/Position.cpp
DOM/ProcessingInstruction.cpp
DOM/QualifiedName.cpp
DOM/Range.cpp
DOM/ShadowRoot.cpp
DOM/StaticNodeList.cpp