[Haskell-cafe] Haskell version of ray tracer code is much slowerthan the original ML

Jon Harrop jon at ffconsultancy.com
Sat Jun 23 05:45:28 EDT 2007


On Saturday 23 June 2007 08:54:11 Philip Armstrong wrote:
> On Sat, Jun 23, 2007 at 12:42:33AM +0100, Claus Reinke wrote:
> >>http://www.kantaka.co.uk/darcs/ray
> >
> >try making ray_sphere and intersect' local to intersect,
> >then drop their constant ray parameter. saves me 25%.
> >claus
>
> I see: I guess I'm paying for laziness in the first parameter to
> intersect' which I don't need. 25% brings it within spitting distance
> of the OCaml binary too.

Can you post the code for this?

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal
http://www.ffconsultancy.com/products/ocaml_journal/?e


More information about the Haskell-Cafe mailing list