Hi Igor,<div><br></div><div>    is the NB implementation mapping the character codes in the wide strings into Character objects and taking the character hashes?  If so, very cool.  The NB code is very fast.  If on the other hand you&#39;re just short-circuiting the character code lookup then you&#39;re cheating :)<br>
<br><div class="gmail_quote">On Fri, May 14, 2010 at 3:31 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@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;">
Oh, yeah..<br>
i forgot to hash the strings.. for comparison:<br>
<br>
|ss s t1 t2 t3 |<br>
<div class="im">s := (WideString with: (Character value: 16r55E4)) , &#39;abcdefghijklmno&#39;.<br>
</div>ss := (String with: $z) , &#39;abcdefghijklmno&#39;.<br>
<br>
10 timesRepeat: [ s := s , s. ss := ss , ss ].<br>
<div class="im">self assert: (s hash = s nbHash).<br>
t1 := [1000 timesRepeat: [s hash]] timeToRun.<br>
t2 := [1000 timesRepeat: [s nbHash]] timeToRun.<br>
</div>t3 := [1000 timesRepeat: [ss hash]] timeToRun.<br>
{ t1. t2. t3 }<br>
 #(11477 134 190)<br>
<br>
so, WideString&gt;&gt;nbHash outperforms ByteString&gt;&gt;hash a little, for same<br>
string sizes. ;)<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Best regards,<br>
Igor Stasenko AKA sig.<br>
<br>
</div></div></blockquote></div><br></div>