runner icon indicating copy to clipboard operation
runner copied to clipboard

Scala has a lower maximum code submission size limit than usual

Open Voileexperiments opened this issue 3 years ago • 3 comments

I was trying to submit a ~700kb Scala solution, and this happens:

java.lang.ArrayIndexOutOfBoundsException: arraycopy: last destination index 701744 out of bounds for char[524288] while compiling src/main/scala/solution.scala, src/test/scala/fixture.scala, src/main/scala/preloaded.scala

Which probably means the code size limit is less than 512kb. This limit is at least 1MB in other languages (currently at 1MB because of https://github.com/codewars/codewars.com/issues/2726), and I don't think Scala should have a smaller limit than other languages.

Voileexperiments avatar Sep 05 '22 09:09 Voileexperiments

Was it for Scala 2.x, or Scala 3?

hobovsky avatar Sep 05 '22 09:09 hobovsky

Scala 3.

Voileexperiments avatar Sep 05 '22 09:09 Voileexperiments

The runner doesn't have language-specific code size limits.

kazk avatar Sep 06 '22 19:09 kazk