Scala timeouts killing me. How to speed up compile time?

My Scala bot for Legends of Code and Magic is constantly timing out before the first move (~10% of the competition games!). I’m not doing any complicated calculations during the draft phase, so I assume this is because of Scala’s slow compilation times.

Do other Scala programmers have this problem?

Are there any easy fixes?

I had the same issue for my bot in rust (Possible compilation timeout for Rust (on LoCaM))

I tried for one week many tweaks but with inconsistent short term results. In the end, the only working long term ‘fix’ was a complete rewrite with simpler data structure and less abstraction.

I hope you don’t have to go this far :confused: