Ray Tracing, Ray Tracer, Haskell, Performance, Parallel Computing.
I made the following improvements in the code (see commit). Use INLINE aggresively Use BANG pattern aggresively Use custom loop instead of foldl’ Use Data.Array and tuple instead of list (which is expensive to traverse). Use random >= 1.2 which is significantly faster compared to random-1.1, as now