Closed sadiqj closed 4 years ago
It's tragic that changes like this make a difference.
Curious to see how much this improves OCaml performance @athas. OCaml has a new optimizing pass flambda
, which should make many of these handwritten optimizations unnecessary.
I'll post some new numbers later today. Got distracted by other computer things.
Manually defining the vector operations halves the number of allocations.
Also removed another allocation in the
aabb_hit
logic. There's probably still a bit to do there.These tweaks give about a 40% speedup on my quadcore i7 4770k (when run with --cores 4).