Daily Pathtracer part 9: a wild ryg appears and optimizes my code! http://aras-p.info/blog/2018/04/13/Daily-Pathtracer-9-A-wild-ryg-appears/
Next up: put these optimizations into C#, C#/Burst, GPU implementations.