[Webkit-unassigned] [Bug 251697] EventListenerMap's m_entries vector wastes a lot of vector capacity

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 3 20:48:22 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=251697

--- Comment #5 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
diff --git a/Source/WebCore/dom/EventListenerMap.h b/Source/WebCore/dom/EventListenerMap.h
index 25a4340b6014f9e2bd2f1cd1b19760c86c30a6d7..55e619529189ad8bf80753514035d50be115c49c 100644
--- a/Source/WebCore/dom/EventListenerMap.h
+++ b/Source/WebCore/dom/EventListenerMap.h
@@ -74,7 +74,7 @@ public:
     Lock& lock() { return m_lock; }

 private:
-    Vector<std::pair<AtomString, EventListenerVector>> m_entries;
+    Vector<std::pair<AtomString, EventListenerVector>, 0, CrashOnOverflow, 4> m_entries;
     Lock m_lock;
 };

-- 
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/20230204/51d0be99/attachment.htm>


More information about the webkit-unassigned mailing list