<?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>46537</bug_id>
          
          <creation_ts>2010-09-24 16:26:49 -0700</creation_ts>
          <short_desc>SVG: Avoid calling pow() in genericParseNumber() unless necessary</short_desc>
          <delta_ts>2010-09-26 10:46:56 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Performance</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Kling">kling</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>mdelaney7</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>284834</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-09-24 16:26:49 -0700</bug_when>
    <thetext>We don&apos;t need to call pow() if there&apos;s no exponent.

0.4% speedup on &lt;http://themaninblue.com/experiment/AnimationBenchmark/svg/&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284837</commentid>
    <comment_count>1</comment_count>
      <attachid>68787</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-09-24 16:28:13 -0700</bug_when>
    <thetext>Created attachment 68787
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284844</commentid>
    <comment_count>2</comment_count>
      <attachid>68787</attachid>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-09-24 16:36:58 -0700</bug_when>
    <thetext>Comment on attachment 68787
Proposed patch

Nice !</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284913</commentid>
    <comment_count>3</comment_count>
      <attachid>68787</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-24 18:57:24 -0700</bug_when>
    <thetext>Comment on attachment 68787
Proposed patch

Clearing flags on attachment: 68787

Committed r68321: &lt;http://trac.webkit.org/changeset/68321&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284914</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-24 18:57:29 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285130</commentid>
    <comment_count>5</comment_count>
    <who name="Matthew Delaney">mdelaney7</who>
    <bug_when>2010-09-26 10:37:01 -0700</bug_when>
    <thetext>Just out of curiosity, how were you able to accurately/reliably measure a 0.4% speedup? Did you instrument the fps meter from that test to display some sort of longer run - and thus more steady - average?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285135</commentid>
    <comment_count>6</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-09-26 10:46:56 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Just out of curiosity, how were you able to accurately/reliably measure a 0.4% speedup? Did you instrument the fps meter from that test to display some sort of longer run - and thus more steady - average?

Using an internal tool that runs something for X frames and measures wall/CPU time spent. Also, testing on a slow device helps a lot with the stability of timings.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>68787</attachid>
            <date>2010-09-24 16:28:13 -0700</date>
            <delta_ts>2010-09-24 18:57:24 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>bug-46537.diff</filename>
            <type>text/plain</type>
            <size>1274</size>
            <attacher name="Andreas Kling">kling</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
MDkzZjQ4ZC4uNWNkZDMwZCAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNSBAQAorMjAxMC0wOS0yNCAgQW5kcmVhcyBLbGlu
ZyAgPGFuZHJlYXMua2xpbmdAbm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9E
WSAoT09QUyEpLgorCisgICAgICAgIFNWRzogQXZvaWQgY2FsbGluZyBwb3coKSBpbiBnZW5lcmlj
UGFyc2VOdW1iZXIoKSB1bmxlc3MgbmVjZXNzYXJ5CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJr
aXQub3JnL3Nob3dfYnVnLmNnaT9pZD00NjUzNworCisgICAgICAgIDAuNCUgc3BlZWR1cCBvbiA8
aHR0cDovL3RoZW1hbmluYmx1ZS5jb20vZXhwZXJpbWVudC9BbmltYXRpb25CZW5jaG1hcmsvc3Zn
Lz4KKworICAgICAgICAqIHN2Zy9TVkdQYXJzZXJVdGlsaXRpZXMuY3BwOgorICAgICAgICAoV2Vi
Q29yZTo6Z2VuZXJpY1BhcnNlTnVtYmVyKTogT25seSBjYWxsIHBvdygpIHdoZW4gd2UgaGF2ZSBh
biBleHBvbmVudC4KKwogMjAxMC0wOS0yNCAgTHVpeiBBZ29zdGluaSAgPGx1aXouYWdvc3RpbmlA
b3BlbmJvc3NhLm9yZz4KIAogICAgICAgICBSZXZpZXdlZCBieSBLZW5uZXRoIFJvaGRlIENocmlz
dGlhbnNlbi4KZGlmZiAtLWdpdCBhL1dlYkNvcmUvc3Zn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