<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: ARIA 1.1 &#64;aria-current"
   href="https://bugs.webkit.org/show_bug.cgi?id=146012#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: ARIA 1.1 &#64;aria-current"
   href="https://bugs.webkit.org/show_bug.cgi?id=146012">bug 146012</a>
              from <span class="vcard"><a class="email" href="mailto:darin&#64;apple.com" title="Darin Adler &lt;darin&#64;apple.com&gt;"> <span class="fn">Darin Adler</span></a>
</span></b>
        <pre>Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=260897&amp;action=diff" name="attach_260897" title="patch">attachment 260897</a> <a href="attachment.cgi?id=260897&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=260897&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=260897&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/accessibility/AccessibilityObject.cpp:1830
&gt; +    String falseValue = ASCIILiteral(&quot;false&quot;);
&gt; +    String pageValue = ASCIILiteral(&quot;page&quot;);
&gt; +    String stepValue = ASCIILiteral(&quot;step&quot;);
&gt; +    String locationValue = ASCIILiteral(&quot;location&quot;);
&gt; +    String dateValue = ASCIILiteral(&quot;date&quot;);
&gt; +    String timeValue = ASCIILiteral(&quot;time&quot;);</span >

Putting these into local String variables is not helpful. We actually miss the opportunity to get the optimized version of == and waste time every time this function is called, allocating and deallocating 6 extra strings. I suggest just comparing directly with the string literals, or using locals of type const char[] or const char*.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>