Scala perf: Why is this Scala app 30x slower than the equivalent Java app?

后端 未结 3 1984
感情败类
感情败类 2021-02-07 11:33

I am a very proficient C# developer, but need to start writing code that works on the JVM. The Java language is feature poor compared to C# these days, so I was interested in t

3条回答
  •  忘了有多久
    2021-02-07 11:48

    $ javac app.java
    $ scalac app.scala 
    $ scala HelloWorld
    hello scala
    ms, checksum = 
    1051
    -100000
    $ java app
    hello, java
    ms, checksum = 
    1044
    -100000
    

    What I'm doing wrong?

提交回复
热议问题