<div dir="ltr">Philippe -<div><br></div><div>In VA Smalltalk:</div><div> * String&gt;&gt;#= is implemented as a primitive. The primitive compares #size before iterating over the characters</div><div> * No Unicode normalization is done</div>

<div> * No, this cannot happen.</div><div><br></div><div>John</div></div><div class="gmail_extra"><br clear="all"><div>John O&#39;Keefe [|], CTO/Principal Smalltalk Architect, Instantiations Inc.<br>Skype: john_okeefe2     Mobile:  +1 919 417-3181 (Business hours USA Eastern Time zone (GMT -5))<br>

<a href="mailto:john_okeefe@instantiations.com" target="_blank">john_okeefe@instantiations.com</a><br><a href="http://www.instantiations.com/" target="_blank">http://www.instantiations.com</a><br><em><strong>VA Smalltalk...Onward and Upward!</strong></em></div>


<br><br><div class="gmail_quote">On Sun, Jun 1, 2014 at 11:55 AM, Philippe Marschall <span dir="ltr">&lt;<a href="mailto:philippe.marschall@gmail.com" target="_blank">philippe.marschall@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I am currently looking at your dictionary look up performance [1]. We<br>
use GRSmallDictionary instead of Dictionary in a lot of places with<br>
string keys (request and response headers, url query fields, …).<br>
Unfortunately on Squeak/Pharo with 11 keys Dictionary is twice as<br>
fast. The reason seems to be that String &gt;&gt; #= is quite slow on<br>
Squeak/Pharo especially with prefix matches. Special casing string<br>
keys and first sending and comparing #size before #= seems to fix this<br>
and make GRSmallDictionary again slightly faster than Dictionary.<br>
<br>
Before I take any action I wanted to ask how String &gt;&gt; #= is<br>
implemented in other dialects<br>
 * Do any dialects first compare #size before iterating over the characters?<br>
 * Do any dialects do Unicode normalization in String &gt;&gt; #=?<br>
 * Do any dialects implement String &gt;&gt; #= in a way such that two<br>
strings with different sizes could be considered equal (eg. because<br>
they do normalization)?<br>
<br>
 [1] <a href="https://code.google.com/p/seaside/issues/detail?id=793" target="_blank">https://code.google.com/p/seaside/issues/detail?id=793</a><br>
<br>
Cheers<br>
Philippe<br>
_______________________________________________<br>
seaside-dev mailing list<br>
<a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
</blockquote></div><br></div>