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

Philip Armstrong phil at kantaka.co.uk
Sat Jun 23 03:54:11 EDT 2007


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.

Phil

-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt


More information about the Haskell-Cafe mailing list