Hi,

I just noticed a surprisingly big difference in execution speed between 32- and 
64-bit PicoLisp when doing divisions. Here is my code:

(setq R (reverse (range 2 18)) P (cons (apply * R) R))
(bench (do 1200000 (apply / P)))

The first line sets P to (6402373705728000 18 17 16 15 14 13 12 11 10 9 8 7 6 5 
4 3 2).

On my Mac, 32-bit PicoLisp takes some 6.760 sec to do the divisions, while 
64-bit (I’m using my Docker image) takes only 0.308 sec.

32-bit PicoLisp is actually slower at this task than my JavaScript based 
EmuLisp. In Chrome it takes roughly 5.350 sec, but when you think of the 
difference between JavaScript arithmetic and PicoLisp arithmetic, it’s not that 
strange.

/Jon--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to