<?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>16503</bug_id>
          
          <creation_ts>2007-12-18 10:54:28 -0800</creation_ts>
          <short_desc>match limit takes at least 13% of the time on the SunSpider regexp-dna test</short_desc>
          <delta_ts>2010-06-11 17:36:13 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Adler">darin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>ggaren</cc>
    
    <cc>mjs</cc>
    
    <cc>zwarich</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64650</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-12-18 10:54:28 -0800</bug_when>
    <thetext>The match limit inside the regular expression execution engine slows down the regexp-dna test by about 13%. If we can find some more efficient way of preventing complex regular expressions from causing a hang, then we could get a substantial speed-up.

See bug 16458 for some history.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81832</commentid>
    <comment_count>1</comment_count>
      <attachid>21408</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-29 08:02:00 -0700</bug_when>
    <thetext>Created attachment 21408
2.3% improvement

Removing the check altogether is a 9.5% win on my machine.

I guess this micro-optimization is unnecessary if someone has a real fix in mind, but I thought it was worth posting anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81850</commentid>
    <comment_count>2</comment_count>
      <attachid>21408</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-05-29 09:33:37 -0700</bug_when>
    <thetext>Comment on attachment 21408
2.3% improvement

r=me

I&apos;m not sure anyone has a handle on a &quot;real fix&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82715</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-06-08 22:36:51 -0700</bug_when>
    <thetext>Alexey, are you going to land this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82734</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-06-09 04:28:33 -0700</bug_when>
    <thetext>I&apos;m trying to land this periodically, but random code generation changes elsewhere cause it to be a regression overall now. One of these days, I&apos;ll get lucky and have it landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82826</commentid>
    <comment_count>5</comment_count>
      <attachid>21408</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-06-10 07:56:39 -0700</bug_when>
    <thetext>Comment on attachment 21408
2.3% improvement

Landed in r34480, clearing review flag. Today, the win on regexp-dna was only 0.6%, but the total win was huge (0.5%), apparently due to random code generation changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237182</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-06-11 17:36:13 -0700</bug_when>
    <thetext>Something was landed here, so marking fixed. The rest of the bug is likely long obsolete.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>21408</attachid>
            <date>2008-05-29 08:02:00 -0700</date>
            <delta_ts>2010-06-10 15:41:07 -0700</delta_ts>
            <desc>2.3% improvement</desc>
            <filename>MatchLimit.txt</filename>
            <type>text/plain</type>
            <size>1528</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDM0MTk0KQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMDgtMDUtMjkgIEFsZXhleSBQ
cm9za3VyeWFrb3YgIDxhcEB3ZWJraXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9E
WSAoT09QUyEpLgorCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD0xNjUwMworICAgICAgICBtYXRjaCBsaW1pdCB0YWtlcyBhdCBsZWFzdCAxMyUgb2YgdGhl
IHRpbWUgb24gdGhlIFN1blNwaWRlciByZWdleHAtZG5hIHRlc3QKKworICAgICAgICBNYWtlIHRo
ZSB0ZXN0IHNsaWdodGx5IG1vcmUgZWZmaWNpZW50LCBmb3IgMi4zJSB3aW4gb24gcmVnZXhwLWRu
YS4KKworICAgICAgICAqIHBjcmUvcGNyZV9leGVjLmNwcDogKG1hdGNoKTogQXZvaWQgbG9hZGlu
ZyBhIGNvbnN0YW50IG9uIGVhY2ggaXRlcmF0aW9uLgorCiAyMDA4LTA1LTI4ICBPbGl2ZXIgSHVu
dCAgPG9saXZlckBhcHBsZS5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgQW5kZXJzLgpJbmRl
eDogSmF2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gdGhlIG9wZXJhdGlvbnMuICovCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>