[Webkit-unassigned] [Bug 209667] New: Optimize frequently used Document::canAcceptChild

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 27 11:07:57 PDT 2020


            Bug ID: 209667
           Summary: Optimize frequently used Document::canAcceptChild
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: eugenebut at chromium.org

This came up during the codereview here: https://bugs.webkit.org/show_bug.cgi?id=208311#c53

Darin Adler said:

"Can’t help noticing that this function is not written with efficiency in mind. The nodeType virtual function is pretty expensive and we call it 3 times!"


"this can be optimized for all the common cases to not call nodeType at all, using functions like isElementNode and isTextNode that are inline single bit checks. Only exotic cases would require calls to nodeType."

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/20200327/9641a14a/attachment.htm>

More information about the webkit-unassigned mailing list