#lang racket is about 5x slower on my machine to start:

% cat full.rkt
#lang racket
42
% cat base.rkt
#lang racket/base
42
% time racket full.rkt
42
racket full.rkt  0.23s user 0.07s system 94% cpu 0.316 total
% time racket base.rkt
42
racket base.rkt  0.04s user 0.02s system 95% cpu 0.062 total
%

On Sat, Oct 3, 2015 at 8:49 AM, Paolo Giarrusso <p.giarru...@gmail.com> wrote:
> On Saturday, October 3, 2015 at 1:41:57 PM UTC+2, Neil Van Dyke wrote:
>> I always use `#lang racket/base`, since I'm almost always writing
>> reusable modules, and I'd like for a hypothetical someone reusing the
>> module in the future to not have to pull in all the `#lang racket`
>> dependencies.
>
> As a new programmer always using #lang racket: what's the overhead from using 
> it instead of racket/base? Is name lookup during compilation slower? 
> Documentation mentions "load time"... but if that's paid once (in DrRacket), 
> I can live with that.
> I'd bet program execution to be exactly as fast, but even this might be wrong 
> if name lookups happen during compilation.
>
> --
> 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.



-- 
Jay McCarthy
http://jeapostrophe.github.io

           "Wherefore, be not weary in well-doing,
      for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
                          - D&C 64:33

-- 
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