[racket] Number-crunching...

From: Sam Tobin-Hochstadt (samth at cs.indiana.edu)
Date: Tue Nov 12 23:10:53 EST 2013

On Tue, Nov 12, 2013 at 10:17 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>
> For fun, I tried adding `unsafe-flrandom` to use in place of
> `random-real`, in which case the JIT can leave the flonum result
> unboxed. That saves another 40% or so, but only if I manually inline
> `unsafe-flrandom` in place of `random-real`; if I pass it in (the
> optimizer thinks `compiled-mcmc` is too big to specialize), then it
> saves only 20% or so by streamlining the call path.

This is the sort of case where Typed Racket in concert with
Optimization Coach is likely to be particularly helpful (would
`begin-encourage-inline` have worked?) so I hope you do add it.

Sam

Posted on the users mailing list.