[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: encode-universal-time slow
- To: owens@gargoyle.uchicago.edu (Christopher Owens)
- Subject: Re: encode-universal-time slow
- From: bill@cambridge.apple.com (Bill St. Clair)
- Date: Mon, 22 Jun 1992 12:19:10 -0500
- Cc: info-mcl
>Random discovery for the day ---- I've got code that manages many,
>many temporal intervals. I was trying to optimize part of it and I
>just discovered that MCL2.0Bp3's encode-universal-time takes 40 times
>as much execution time (measured on my IIfx) if you don't supply the
>optional timezone argument....
I, too, have an FX. It takes longer for me, but not 40 times as long:
? (time (dotimes (i 1000)
(encode-universal-time 0 10 12 22 6 92 5)))
(DOTIMES (I 1000) (ENCODE-UNIVERSAL-TIME 0 10 12 22 6 92 5)) took 65 ticks (1.083 seconds) to run.
Of that, 10 ticks (0.167 seconds) were spent in The Cooperative Multitasking Experience.
49240 bytes of memory allocated.
NIL
? (time (dotimes (i 1000)
(encode-universal-time 0 10 12 22 6 92)))
(DOTIMES (I 1000) (ENCODE-UNIVERSAL-TIME 0 10 12 22 6 92)) took 97 ticks (1.617 seconds) to run.
Of that, 11 ticks (0.183 seconds) were spent in The Cooperative Multitasking Experience.
96496 bytes of memory allocated.
NIL
?