Big speed diff. 32/64-bit when doing /

2014-09-30 Thread Jon Kleiser
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 120 (apply / P))) The first line sets P to (6402373705728000 18 17 16 15 14 13 12 11

Re: Big speed diff. 32/64-bit when doing /

2014-09-30 Thread Alexander Burger
Hi Jon, I just noticed a surprisingly big difference in execution speed between 32- and 64-bit PicoLisp when doing divisions. In general, arithmetics is much faster in pil64 than in pil32. One reason is the more efficient implementation in assembly, where you have direct access to the CPU