[Webkit-unassigned] [Bug 251697] New: EventListenerMap's m_entries vector wastes a lot of vector capacity
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 3 10:03:10 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=251697
Bug ID: 251697
Summary: EventListenerMap's m_entries vector wastes a lot of
vector capacity
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: simon.fraser at apple.com
Using the patch in bug 186698, and testing on a wikipedia page, we see that EventListenerMap::m_entries is the second-most wasteful site for vector capacity:
Wasted capacity: 65640 bytes (used 6680 of 72320 bytes, utilization: 9.24%) - 1923 allocations
1 0x2fc39b217 WebCore::EventListenerMap::EventListenerMap()
2 0x2fcd93008 WebCore::RenderObject::RenderObject(WebCore::Node&)
3 0x2fcceef18 WebCore::RenderElement::RenderElement(WebCore::Element&, WebCore::RenderStyle&&, unsigned int)
4 0x2fcd69351 WebCore::RenderLayerModelObject::RenderLayerModelObject(WebCore::Element&, WebCore::RenderStyle&&, unsigned int)
5 0x2fccbe2b1 WebCore::RenderBoxModelObject::RenderBoxModelObject(WebCore::Element&, WebCore::RenderStyle&&, unsigned int)
6 0x2fcd287b3 WebCore::RenderInline::RenderInline(WebCore::Element&, WebCore::RenderStyle&&)
Wasted capacity: 7960 bytes (used 1000 of 8960 bytes, utilization: 11.16%) - 278 allocations
1 0x2fc39b217 WebCore::EventListenerMap::EventListenerMap()
2 0x2fcd93008 WebCore::RenderObject::RenderObject(WebCore::Node&)
3 0x2fcceef18 WebCore::RenderElement::RenderElement(WebCore::Element&, WebCore::RenderStyle&&, unsigned int)
4 0x2fcd69351 WebCore::RenderLayerModelObject::RenderLayerModelObject(WebCore::Element&, WebCore::RenderStyle&&, unsigned int)
5 0x2fccbe261 WebCore::RenderBox::RenderBox(WebCore::Element&, WebCore::RenderStyle&&, unsigned int)
Wasted capacity: 3400 bytes (used 440 of 3840 bytes, utilization: 11.46%) - 7 allocations
1 0x2fc39b217 WebCore::EventListenerMap::EventListenerMap()
2 0x2fc5e7fb0 WebCore::CheckboxInputType::CheckboxInputType(WebCore::HTMLInputElement&)
3 0x2fc5e73e8 WTF::Ref<WebCore::InputType, WTF::RawPtrTraits<WebCore::InputType> > WebCore::createInputType<WebCore::CheckboxInputType>(WebCore::HTMLInputElement&)
4 0x2fc5e0772 WebCore::InputType::createIfDifferent(WebCore::HTMLInputElement&, WTF::AtomString const&, WebCore::InputType*)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230203/7d2f990d/attachment.htm>
More information about the webkit-unassigned
mailing list