<?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>111247</bug_id>
          
          <creation_ts>2013-03-02 01:59:53 -0800</creation_ts>
          <short_desc>Threaded HTML Parser should parse the first chunk on the main thread</short_desc>
          <delta_ts>2023-09-20 19:59:39 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>111645</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>cdumez</cc>
    
    <cc>tonyg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>845774</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-02 01:59:53 -0800</bug_when>
    <thetext>Threaded HTML Parser should parse the first chunk on the main thread

We may have to be slightly more careful about which bool we check, as we&apos;ll be in threaded mode w/o having started a background parser yet.  But right before we would yield, we just pass our Tokenizer and HTMLToken off to a newly started background parser and then yield the main thread.

I suspect this should be a win for small (&lt;1k token) documents which can be parsed in a single chunk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>845944</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-03-02 23:39:32 -0800</bug_when>
    <thetext>Yeah, this seems like it should be faster.  We should fine a way to test the performance before landing it.  The HTML spec parsing benchmark probably isn&apos;t the right thing since it&apos;s a big document.  Maybe we should measure with telemetry&apos;s top25 page set?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>845946</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-02 23:42:57 -0800</bug_when>
    <thetext>Yes, I think Telemetry will be more interesting here.  Something with lots of small resources should hit this?

Then again, now that I think about it, I&apos;m not sure small pages even show up in parse time given all the rest of the loader overhead.  I suspect what this would actually make faster is the layout tests. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978845</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-20 17:46:49 -0700</bug_when>
    <thetext>@Chris - Do we have this or we can close this and blocker bugs in META bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978874</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-09-20 19:59:39 -0700</bug_when>
    <thetext>We are not using a multi-threaded HTML parser.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>