[squeak-dev] The Inbox: Kernel-pad.663.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Thu May 10 20:45:34 UTC 2012


This would break this test:

| date1 date2 |
date1 := DateAndTime new ticks: (DateAndTime unixEpoch + 1 hours)
ticks offset: 0 hours.
date2 := DateAndTime new ticks: (DateAndTime unixEpoch - 2 hours)
ticks offset: -3 hours.
self assert: (date1 = date2) ==> [date1 hash = date2 hash]

Nicolas

2012/5/10  <commits at source.squeak.org>:
> A new version of Kernel was added to project The Inbox:
> http://source.squeak.org/inbox/Kernel-pad.663.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-pad.663
> Author: pad
> Time: 10 May 2012, 12:47:18.293 pm
> UUID: 2f2f4a65-fb59-4813-94b9-91fc0de79d4a
> Ancestors: Kernel-ul.662
>
> Includes an updated version of DateAndTime>>#hash which is faster than the current version (~130x) and also relatively conflict free (~4 per 10,000)
>
> =============== Diff against Kernel-ul.662 ===============
>
> Item was changed:
>  ----- Method: DateAndTime>>hash (in category 'ansi protocol') -----
>  hash
> +       ^ (jdn hashMultiply bitXor: seconds + offset asSeconds) bitXor: nanos!
> -
> -       ^ self asUTC ticks hash!
>
>


More information about the Squeak-dev mailing list