<?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>15958</bug_id>
          
          <creation_ts>2007-11-12 12:53:03 -0800</creation_ts>
          <short_desc>base64 spends 1.1% of total time checking for special Infinity case</short_desc>
          <delta_ts>2007-11-13 00:05:28 -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>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>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Geoffrey Garen">ggaren</assigned_to>
          <cc>darin</cc>
    
    <cc>ggaren</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61010</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-11-12 12:53:03 -0800</bug_when>
    <thetext>base64 spends 1.1% of total time working around toDouble/kjs_dota logic mismatch

Well, here&apos;s another softball:

at least 1.4% of *total time* in base64 is spent on this line in UString::toDouble:

if (strncmp(c, &quot;Infinity&quot;, 8) == 0) {

We already have our own custom dota (aka kjs_dota) we just need a way to call into that logic where it doesn&apos;t ever return &quot;Infinity&quot; and instead does what UString::toDouble wants it to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61048</commentid>
    <comment_count>1</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2007-11-12 22:25:04 -0800</bug_when>
    <thetext>I&apos;ll take this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61055</commentid>
    <comment_count>2</comment_count>
      <attachid>17221</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2007-11-12 23:14:42 -0800</bug_when>
    <thetext>Created attachment 17221
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61058</commentid>
    <comment_count>3</comment_count>
      <attachid>17221</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2007-11-12 23:48:12 -0800</bug_when>
    <thetext>Comment on attachment 17221
Patch

Looking reasonable.  r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61059</commentid>
    <comment_count>4</comment_count>
      <attachid>17221</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-11-12 23:48:50 -0800</bug_when>
    <thetext>Comment on attachment 17221
Patch

Oh.  I figured we&apos;d had up kjs_dota, but this looks great too. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61061</commentid>
    <comment_count>5</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2007-11-13 00:05:19 -0800</bug_when>
    <thetext>Committed revision 27748.

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>17221</attachid>
            <date>2007-11-12 23:14:42 -0800</date>
            <delta_ts>2007-11-12 23:48:12 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>patch-inf.txt</filename>
            <type>text/plain</type>
            <size>1427</size>
            <attacher name="Geoffrey Garen">ggaren</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDI3N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TAwMSw3ICsxMDAxLDcgQEAgZG91YmxlIFVTdHJpbmc6
OnRvRG91YmxlKGJvb2wgdG9sZXJhdGVUcgogICAgICAgLy8gY29udmVydHMgdGhlIHN0cmluZyAi
aW5mIiB3aXRoIGFueSBjYXBpdGFsaXphdGlvbiB0byBpbmZpbml0eSwKICAgICAgIC8vIHdoZXJl
YXMgdGhlIEVDTUEgc3BlYyByZXF1aXJlcyB0aGF0IGl0IGJlIGNvbnZlcnRlZCB0byBOYU4uCiAK
LSAgICAgIGlmIChzdHJuY21wKGMsICJJbmZpbml0eSIsIDgpID09IDApIHsKKyAgICAgIGlmIChj
WzBdID09ICdJJyAmJiBjWzFdID09ICduJyAmJiBjWzJdID09ICdmJyAmJiBjWzNdID09ICdpJyAm
JiBjWzRdID09ICduJyAmJiBjWzVdID09ICdpJyAmJiBjWzZdID09ICd0JyAmJiBjWzddID09ICd5
JykgewogICAgICAgICBkID0gc2lnbiAqIEluZjsKICAgICAgICAgYyArPSA4OwogICAgICAgfSBl
bHNlIGlmICgoZCA9PSBJbmYgfHwgZCA9PSAtSW5mKSAmJiAqYyAhPSAnSScgJiYgKmMgIT0gJ2kn
KQo=
</data>
<flag name="review"
          id="7345"
          type_id="1"
          status="+"
          setter="sam"
    />
          </attachment>
      

    </bug>

</bugzilla>