On Sat, 01 Jul 2017 08:07:37 -0500,
'Shakin Billy' via Racket Users wrote:
> 
> java code runs in 4.5 seconds
> racket code takes 12.5 seconds to complete (in cli-mode)
> 
> i typed racket and used unsafe operations. some perfomance hints from the 
> guide don't seem to apply since i already tyyped racket. 
> the optimization coach hints to use define-inline but it seems to be 
> available only in non-typed-raket.

You should be able to use `define-inline` by importing it from
`racket/performance-hint`. The Typed Racket typechecker may not be able
to cope with its expansion, though. You can emulate it by replacing your
function with a macro yourself, though.

Vincent

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