On Thursday, March 3, 2016 at 11:06:56 AM UTC+8, Matthias Felleisen wrote:

> 1. Don’t ever measure anything in drracket (version 6.4.1 or earlier). 

Perhaps this explains why you could not reproduce the problem :-)

DrRacket is the tool most people use to write Racket programs, and I suspect a 
lot of the time the only place where they run their programs.  Most people will 
judge the speed of Racket by how fast programs run inside DrRacket.

Also, the OP was not talking about shaving a few milliseconds, or even a 2x 
slowdown, the time difference is huge (20x).  This slowdown is not expected by 
anyone who has some familiarity with other programming environments.  If it 
cannot be improved, perhaps a warning message should be printed in the eval 
window...

> 2. Are you comparing two different installations of Racket like the OP does? 
> Or are you just saying something is slow sometimes? 

My timings are from the same racket installation, Racket 6.4 64 bit Windows 7, 
default install.  Just to recap, for the same code example as the OP presented, 
running in DrRacket:

  * "Debug" and "Preserve stack trace" enabled -> 85 seconds
  * "Debug" disabled, "Preserve stack trace" enabled -> 4.5 seconds
  * "Debug" and "Preserve stack trace" disabled -> 3.6 seconds.

> 
> > On Mar 2, 2016, at 8:21 PM, Alex Harsanyi <alexharsa...@gmail.com> wrote:
> > 
> > I have the same problem with Racket 6.4 64Bit Windows (running on Windows 
> > 7):
> > 
> >> (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
> > 
> > -- 
> > 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+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to