Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1d8414ed7055f1162ca75911457efc7423d81021
https://github.com/WebKit/WebKit/commit/1d8414ed7055f1162ca75911457efc7423d81021
Author: Chris Dumez <[email protected]>
Date: 2026-01-13 (Tue, 13 Jan 2026)
Changed paths:
M Source/WebCore/dom/Element.cpp
M Source/WebCore/dom/Element.h
Log Message:
-----------
Add a fast path for notifyAttributeChanged() when called from
parserSetAttributes()
https://bugs.webkit.org/show_bug.cgi?id=305352
Reviewed by Darin Adler.
Add a fast path for notifyAttributeChanged() when called from
parserSetAttributes().
When called from parserSetAttributes(), we know that the Element is not
connected to the document and has no parent so a lot of work in
notifyAttributeChanged()
can be avoided.
This results in a 0.36-0.49% progression on Speedometer 3 (depending on
hardware) on macOS.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::notifyAttributeChangedCommon):
(WebCore::Element::notifyAttributeChanged):
(WebCore::Element::parserNotifyAttributeAdded):
(WebCore::Element::parserSetAttributes):
* Source/WebCore/dom/Element.h:
Canonical link: https://commits.webkit.org/305505@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications