(define (total n)
(for/sum ([x (in-range (+ 1 n))]) x))
(time (total 1000000000))
in Racket 6.1 just now 5287 milliseconds. In Racket 6.4 102384 milliseconds.
Also: When I am typing in the interactions pane of 6.4 there is often a 1-2 second delay before my
keystrokes show up.
Also: When I am typing in the interactions pane of 6.4 there is often a 1-2 second delay before my
keystrokes show up.
Obviously something is wrong with my setup. I uninstalled version 6.4 from my computer and reinstalled the dmg from the download site. It is still the same. I am not going to have access to my desktop for about 10 days. I will see what happens with a laptop.
--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> (time (total 1000000000))
cpu time: 85520 real time: 88070 gc time: 204
BTW, my "Choose Language" dialog box (Ctrl+L) has the following selected:
* Debugging
* Populate "compiled directories"
* Preserve stack trace
* Enforce constant definitions
When disabling the "Debugging", the time goes down significantly:
> (time (total 1000000000))
cpu time: 4555 real time: 5036 gc time: 63
If I also disable the "Preserve stack trace option", the time goes down a bit more:
> (time (total 1000000000))
cpu time: 3619 real time: 3662 gc time: 31
I did not expect the debugging option to have such a huge impact. I don't even know what it does, as there is a separate "Debug" button in the toolbar, which seems to work even when the option is disabled.
BTW, I ran raco setup as suggested in a previous message and after that, DrRacket would not start up anymore [1] and I had to do a fresh install. Racket was installed from the default installer package from racket-lang.org. No additional packages added and the installation was not modified in any way.
Best Regards,
Alex.
[1] https://drive.google.com/file/d/0B5h4XOdkim72bm04eDBGNWpFZ0E/view?usp=sharing
Thanks everyone for your interest and suggestions. I have been away from a computer for a while. The problem is as Matthias says the debugging. In DrRacket 6.4 debugging is on by default. In my installation of 6.1 it is off by default. With debugging off on version 6.4 the difference between the 2 installations on the same computer is approx. 1/10 of a second. Victor Kelmenson