<?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>92486</bug_id>
          
          <creation_ts>2012-07-27 03:41:13 -0700</creation_ts>
          <short_desc>[JSC] JSC should use AtomicStrings to make Element::getAttributeNS() faster</short_desc>
          <delta_ts>2012-10-11 18:51:12 -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>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>99118</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kentaro Hara">haraken</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>barraclough</cc>
    
    <cc>eric</cc>
    
    <cc>ggaren</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>680401</commentid>
    <comment_count>0</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-07-27 03:41:13 -0700</bug_when>
    <thetext>Assume Node::foo(AtomicString&amp; str). Assume JavaScript calls node.foo(&quot;bar&quot;).

[V8] V8 can cache both Strings and AtomicStrings. &quot;bar&quot; is cached as an AtomicString. When node.foo(&quot;bar&quot;) is called, the cached AtomicString is passed to Node::foo(). Very efficient.

[JSC] JSC can cache Strings but cannot cache AtomicStrings. &quot;bar&quot; is cached as a String. When node.foo(&quot;bar&quot;) is called, the cached String has to be converted to AtomicString and then passed to Node::foo().

For more details, please refer to Comment #0 of bug 90276.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>680691</commentid>
    <comment_count>1</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2012-07-27 08:34:21 -0700</bug_when>
    <thetext>&quot;Cache&quot; is the wrong term for what happens when JSC passes a string to WebCore. JSC already has a StringImpl*, and it passes that to WebCore.

The issue here is that &quot;foo&quot; is in the Identifier table but not the AtomicString table. One way to fix this is to merge the tables.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>740508</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-10-11 18:50:12 -0700</bug_when>
    <thetext>I believe bug 99118 and this are the same bug?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>