<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>253601</bug_id>
          
          <creation_ts>2023-03-08 13:38:51 -0800</creation_ts>
          <short_desc>Improve build time by reducing includes of GraphicsLayer.h</short_desc>
          <delta_ts>2023-03-20 16:58:15 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>253837</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1939836</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2023-03-08 13:38:51 -0800</bug_when>
    <thetext>Benchmarking indicates that WebPage.h and WebPageProxy.h are expensive:

976056 ms: /Users/bfulgham/Projects/WebKit/OpenSource/Source/WebKit/UIProcess/WebPageProxy.h (included 78 times, avg 12513 ms), included via:
726039 ms: /Users/bfulgham/Projects/WebKit/OpenSource/Source/WebKit/WebProcess/WebPage/WebPage.h (included 60 times, avg 12100 ms), included via:

Code review shows that they are included in many places they are not needed, and that they include expensive headers that increase build time.

This patch improves build times by resolving some of these cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939854</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2023-03-08 14:33:03 -0800</bug_when>
    <thetext>WebPage.h drops from 12.1 seconds to about 7.4 seconds</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939857</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-03-08 14:38:00 -0800</bug_when>
    <thetext>&lt;rdar://problem/106453112&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939860</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2023-03-08 14:40:44 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/11258</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939891</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2023-03-08 16:23:26 -0800</bug_when>
    <thetext>Pull request: https://github.com/Webkit/WebKit/pull/11258</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939964</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2023-03-08 22:04:04 -0800</bug_when>
    <thetext>Current PR:

Original Build (M1 Pro)
**** Time summary:
Compilation (10257 times):
  Parsing (frontend):         8924.2 s
  Codegen &amp; opts (backend):   3158.1 s

Revised Build (M1 Pro)
**** Time summary:
Compilation (10188 times):
  Parsing (frontend):         8529.2 s
  Codegen &amp; opts (backend):   3150.0 s</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940988</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2023-03-13 13:33:20 -0700</bug_when>
    <thetext>I split this into a second patch: Bug 253837</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942722</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-20 16:58:03 -0700</bug_when>
    <thetext>Committed 261897@main (308d27ada88a): &lt;https://commits.webkit.org/261897@main&gt;

Reviewed commits have been landed. Closing PR #11258 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>