4 ms·
The haskell version can be made >= 3x faster by making the computations non-lazy, e.g. -data Vector3 = Vector3 {vx::Float, vy::Float, vz::Float} deriving (
by piinbinary 7y ago
The haskell version can be made >= 3x faster by making the computations non-lazy, e.g.
-data Vector3 = Vector3 {vx::Float, vy::Float, vz::Float} deriving (Show)
+data Vector3 = Vector3 {vx :: !Float, vy :: !Float, vz :: !Float} deriving (Show)
- niofis 7y agoThis seems like a nice improvement, could you send a PR for it?
- piinbinary 7y agohttps://github.com/niofis/raybench/pull/8 https://github.com/niofis/raybench/pull/8