Extremely slow Scala compiling time


  • 0
    S

    Can someone look into the compiler for Scala? It seems to be significantly slower than other languages. For example, the exact same one line solution for this problem:

    Integer.bitCount(x ^ y);

    computes in 11ms in Java, but 478 ms in Scala!

    I ran this simple problem as a test because my solutions in Scala for more complex problems always end with "Time Limit Exceeded". I hope the Scala time limit can be increased in general so people can actually use the language.

    Thanks.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.