[plt-scheme] getting better speed with JIT
Prabhakar Ragde skrev:
> Jens Axel Soegaard wrote:
>
>> However, since it is illegal to mutate a module-required
>> variable, the compiler can safely inline the + in:
>>
>> (require mzscheme)
>> (define (foo a b) (+ a b))
>
> Thanks. This is pretty much what the text in the mzc compiler manual
> says (even though that's a different beast from the JIT, no?).
Different beast. Same problem.
> I think this should be more widely advertised. --PR
I vaguely recall a discussion on whether or not it were
a good idea to change the default. Since mutation of the
standard bindings rarely are needed, it makes sense
to have the restrictive semantics as the default.
The spirit of such a change is in my view similar to
making cons produce immutable pairs.
--
Jens Axel Søgaard