3 ms·
Looks like they figured it out after one of the compiler guys looked at the code https://discord.com/channels/280713822073913354/1049339112366288976/10497242612
by AzzieElbab 4y ago
Looks like they figured it out after one of the compiler guys looked at the code https://discord.com/channels/280713822073913354/1049339112366288976/1049724261201358968 https://discord.com/channels/280713822073913354/104933911236...
------
So I took a look at the code and the generate bytecode to try to see if the Scala 3 compiler was generating significantly more code. I don't see anything too weird, but the one thing that stands out is all the inline given Conversion in the codebase. I assume the idea is to use inline for performance but I'm afraid it's counter productive here: you end up inlining the anonymous class creation, so every usage of a conversion ends up creating a new anonymous class.
So I recommend just dropping the inline keyword when defining a given ... =
- facorreia 4y agoIt seems that this commit fixed it: https://github.com/lichess-org/lila/commit/c4e53798d171ab71b77f6ea4f0e300aa4dc70b4a https://github.com/lichess-org/lila/commit/c4e53798d171ab71b...
- sideeffffect 4y agoNope, it was wrongly configured code cache https://lichess.org/@/thibault/blog/lichess-on-scala3-help-needed/2bpotLb0 https://lichess.org/@/thibault/blog/lichess-on-scala3-help-n... https://old.reddit.com/r/scala/comments/zh3o6x/lichess_running_fine_now_on_scala_3_after_jvm/ https://old.reddit.com/r/scala/comments/zh3o6x/lichess_runni...