[squeak-dev] The Inbox: Chronology-Core-eem.22.mcz
David T. Lewis
lewis at mail.msen.com
Sat Jan 12 00:16:21 UTC 2019
On Sat, Jan 12, 2019 at 12:32:51AM +0100, Levente Uzonyi wrote:
> Since this thread is about optimization, I just had to chime in.
> On 64-bit Spur, I measured ~12.5x speedup for #getSeconds which is
> impressive. It can increased further by returning the value of the first
> Also, I think the calculation is overcomplicated and the whole method
> seems to be equivalent to:
> ^utcMicroseconds // 1000000 + localOffsetSeconds \\ 86400
The implementation is simpler, but it seems to be a bit slower when I
measure it (DateAndTime>>asSeconds changed versus Chronology-Core-ul.21
on 64-bit Spur image).
I tested with this:
dt := DateAndTime now.
Time millisecondsToRun: [ 100000000 timesRepeat: [dt getSeconds ]].
More information about the Squeak-dev