<br><br><div class="gmail_quote">On Thu, May 10, 2012 at 6:21 AM, Paul DeBruicker <span dir="ltr">&lt;<a href="mailto:pdebruic@gmail.com" target="_blank">pdebruic@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">
On 05/10/2012 04:21 AM, Nicolas Cellier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sure, I already changed various Number&gt;&gt;hash and could as well change<br>
Point hash to follow recommendations from Andres valloud book hashing<br>
in smalltalk...<br>
<br>
Nicolas<br>
</blockquote>
<br>
DateAndTime&gt;&gt;#hash could be changed to :<br>
<br>
hash<br>
        ^ (jdn hashMultiply bitXor: seconds + offset asSeconds) bitXor: nanos<br>
<br>
which is 130x faster than whats currently in the image:<br>
<br>
hash<br>
        ^ self asUTC ticks hash<br>
<br>
<br>
The collision rate on the proposed hash function is 0.04% ( 4 per 10,000 )<br></blockquote><div><br></div><div>Just doit.  Make that change.  If you don&#39;t have commit rights, commit it to inbox.  please!</div><div> </div>
</div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>