<?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>24876</bug_id>
          
          <creation_ts>2009-03-26 22:08:37 -0700</creation_ts>
          <short_desc>fast/forms/select-max-length.html times out in debug builds due to HTMLSelectElement::setLength being O(N^2)</short_desc>
          <delta_ts>2009-03-27 14:34:17 -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>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Rowe (bdash)">mrowe</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>aroben</cc>
    
    <cc>mrowe</cc>
    
    <cc>pkasting</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115493</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-03-26 22:08:37 -0700</bug_when>
    <thetext>After &lt;http://trac.webkit.org/changeset/42012&gt;, fast/forms/select-max-length.html is frequently timing out on my MacBook Pro in a debug build.  Running the test manually shows it takes around 17 seconds to complete, which is above the new 15s threshold.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115494</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2009-03-26 22:09:57 -0700</bug_when>
    <thetext>It looks like HTMLSelectElement::setLength() is O(N^2)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115549</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2009-03-27 09:02:11 -0700</bug_when>
    <thetext>Maybe we should back out r42012</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115550</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2009-03-27 09:02:37 -0700</bug_when>
    <thetext>(Obviously it would be good to improve the test&apos;s performance, too!)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115563</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-03-27 09:58:03 -0700</bug_when>
    <thetext>*** Bug 24889 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115564</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-03-27 09:59:38 -0700</bug_when>
    <thetext>Fixing HTMLSelectElement::setLength would be a better idea, unless there are other tests also timing out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115595</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-03-27 14:09:34 -0700</bug_when>
    <thetext>I have a patch that drops the time of this test from 17 seconds down to around 4.5 seconds by improving HTMLSelectElement::setLength.  I need to verify that the change is safe in the face of fun things like mutation events, and then will put a patch up for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115601</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-03-27 14:34:17 -0700</bug_when>
    <thetext>Fixed in r42050.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>