[Webkit-unassigned] [Bug 224589] New: Avoid indirect load in ContainerNode::hasOneChild()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 14 19:16:46 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=224589
Bug ID: 224589
Summary: Avoid indirect load in ContainerNode::hasOneChild()
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: rniwa at webkit.org
Getting nextSibling() will involve loading the first child into the register.
Avoid that and just check m_firstChild and m_lastChild instead to avoid this extra memory load.
--
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/20210415/b331870d/attachment.htm>
More information about the webkit-unassigned
mailing list