[Webkit-unassigned] [Bug 253741] New: Avoid including Document.h in DocumentParser and JSObject.h in JSSegmentedVariableObject.h

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 10 17:05:06 PST 2023


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

            Bug ID: 253741
           Summary: Avoid including Document.h in DocumentParser and
                    JSObject.h in JSSegmentedVariableObject.h
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org

The Document.h and JSObject.h headers are very costly. They are included in a few places where they are not used:

1. DocumentParser.h doesn't need to include the header, and already includes it in its implementation file.
2. JSSegmentedVariableObject.h doesn't use the contents of JSObject.h at all, so pays a heavy price for no benefit.

These two changes save about 4 minutes of CPU time parsing, and about 0.75 minutes of codegen.

-- 
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/20230311/1e975126/attachment.htm>


More information about the webkit-unassigned mailing list