indigo
indigo copied to clipboard
Batch performance suggestions
You might get a quick and easy performance boost by making it a sealed abstract class instead of a sealed trait. That would make the access to the private lazy val monomorphic.
So says @sjrd.
Try it. Benchmark it. Sounds like a fun task to me. :)
Benchmarks, before:
Benchmarks, after:
I'm calling that inconclusive. I'll have to re-run with more iterations to get more stable numbers. Notice that List is jumping about and it shouldn't be.