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


#1

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?


#2

I had the same issue for my bot in rust (https://forum.codingame.com/t/possible-compilation-timeout-for-rust-on-locam/49493?u=mugu-mugu)

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: