<?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>102598</bug_id>
          
          <creation_ts>2012-11-17 14:35:54 -0800</creation_ts>
          <short_desc>REGRESSION(r135021): Performance/DOM/CreateNodes ~9% slower.</short_desc>
          <delta_ts>2013-02-16 16:16:08 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>
          <dependson>102608</dependson>
    
    <dependson>102615</dependson>
    
    <dependson>102623</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Kling">kling</reporter>
          <assigned_to name="Andreas Kling">kling</assigned_to>
          <cc>kling</cc>
    
    <cc>ojan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>770013</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2012-11-17 14:35:54 -0800</bug_when>
    <thetext>Looks like http://trac.webkit.org/changeset/135021 regressed Performance/DOM/CreateNodes by ~9%.

I&apos;d like to make up for this regression somehow without reinstating the original optimization since it wasn&apos;t very future-proof.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>770016</commentid>
    <comment_count>1</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2012-11-17 14:37:07 -0800</bug_when>
    <thetext>&gt; Copying my comment from bug 101163 here:

Hrmf. I was afraid that might happen. I couldn&apos;t prove that it was slower on my machine, but the test is taking a slightly slower path when cloning the style attribute now.

We used to have an optimization to bypass the whole Element::attributeChanged() virtual dispatch for HTMLNames::styleAttr when cloning attributes and just call StyledElement::styleAttributeChanged() directly. 

While the main purpose of this was to dodge the reparsing of the inline CSS, it also avoided some things that I&apos;m not entirely sure are OK to skip, notably DOM tree version revving and node lists invalidation. Not to mention that the code wasn&apos;t very future-proof since anything added to attributeChanged() in the future would also get skipped for style attributes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834879</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2013-02-16 16:16:08 -0800</bug_when>
    <thetext>Nothing happening here, and the regression was more than covered up for since.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>