[Webkit-unassigned] [Bug 253681] New: Small build time improvement for WebPreferences

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 9 16:43:41 PST 2023


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

            Bug ID: 253681
           Summary: Small build time improvement for WebPreferences
           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

WebPreferences.h now includes <WebCore/LibWebRTCProvider.h> which is costly to parse, and this header is used in numerous places.

By adding a small helper function to WebPreferences that limits this header to the implementation file, it saves a few seconds of build time.

Current Sources:
**** Time summary:
Compilation (10190 times):
  Parsing (frontend):         8911.1 s
  Codegen & opts (backend):   3223.8 s

Proposed Change:
**** Time summary:
Compilation (10173 times):
  Parsing (frontend):         8902.7 s
  Codegen & opts (backend):   3203.7 s

This seems to save about 9 seconds of parsing time, and potentially 20 seconds 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/20230310/b40993fa/attachment-0001.htm>


More information about the webkit-unassigned mailing list