4 ms·
scala interpreter/REPL is starting up in about 0.5 seconds now compared to 7-8 seconds with 2.9.0.1 on my system using Sun JDK 64-bit. System scripting in Scal
by bodski 15y ago
scala interpreter/REPL is starting up in about 0.5 seconds now compared to 7-8 seconds with 2.9.0.1 on my system using Sun JDK 64-bit.
System scripting in Scala suddenly got a lot more appealing :-)
- ori_b 15y agoThat's still a pretty massively long time compared to, say, Ocaml or Haskell. (0.01 seconds for hello world, for both of them)
- jhonnycano 15y agoIt's still appeals too long for me.
- technomancy 15y agoHang on--that's 0.5s for server (64-bit) hotspot? That's astonishing. Any details on how they were able to achieve it?
- bodski 15y agoAye, 64-bit hotspot with implicit -server switch, but going on your astonishment I took a look and it seems the 0.5s time is only achieved with fsc running from previous runs of the REPL. So from cold, i.e. no fsc running it takes about 3 seconds. 2.9.0-1 was taking 7-8 seconds to get the REPL prompt regardless of whether fsc was running already, so this is still like night and day for me :-) Amongst other things it looks like Paul Phillips (a.k.a extempore) has done a lot of optimisation work. This looks like a pretty important one: https://codereview.scala-lang.org/fisheye/changelog/scala-svn?cs=24909 https://codereview.scala-lang.org/fisheye/changelog/scala-sv...
- technomancy 15y agoOh, ok, so fsc is comparable to just connecting to a nailgun daemon, right? I don't actually know Scala; is there a tl;dr for that link?
- gtani 15y ago(I couldn't find a good summation, maybe there are more substantive m-list threads in internals: http://groups.google.com/group/scala-internals/browse_frm/thread/83e613d5262b036d/ http://groups.google.com/group/scala-internals/browse_frm/th... http://groups.google.com/group/scala-internals/browse_frm/thread/3e78dcbd9f5e63a5/ http://groups.google.com/group/scala-internals/browse_frm/th... http://groups.google.com/group/scala-internals/browse_thread/thread/42eb39852eb32777/ http://groups.google.com/group/scala-internals/browse_thread...