<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 10.05.2012, at 19:05, Eliot Miranda wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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>
 &nbsp; &nbsp; &nbsp; &nbsp;^ (jdn hashMultiply bitXor: seconds + offset asSeconds) bitXor: nanos<br>
<br>
which is 130x faster than whats currently in the image:<br>
<br>
hash<br>
 &nbsp; &nbsp; &nbsp; &nbsp;^ 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. &nbsp;Make that change. &nbsp;If you don't have commit rights, commit it to inbox. &nbsp;please!</div></div></blockquote><br></div><div>But take care with rehashing existing sets/collections.</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>