[Haskell-cafe] Haskell version of ray tracer code is much
slowerthan the original ML
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:
> >try making ray_sphere and intersect' local to intersect,
> >then drop their constant ray parameter. saves me 25%.
> 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
More information about the Haskell-Cafe