Does Scala compile faster with external sbt?

44 visualizações
Pular para a primeira mensagem não lida

hol...@informatik.htw-dresden.de

não lida,
15 de jul. de 2016, 07:22:2215/07/2016
para Scala IDE User
I have a project that contains several mostly independent packages, which contain < 10 source files each. The IDE needs about 10 s to recompile if I just change a number in a file. Will this improve if I use an external sbt to compile the project?

Simon Schaefer

não lida,
15 de jul. de 2016, 09:35:5015/07/2016
para scala-i...@googlegroups.com
Probably not. 10s is already quite a long time for such a small project. Are you doing a lot of type level programming or do your projects simply depend on each other?


---- On Fri, 15 Jul 2016 13:22:22 +0200 hol...@informatik.htw-dresden.de wrote ----

I have a project that contains several mostly independent packages, which contain < 10 source files each. The IDE needs about 10 s to recompile if I just change a number in a file. Will this improve if I use an external sbt to compile the project?

--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/fe8b3eee-898b-47e2-98ab-ae783d914d4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hol...@informatik.htw-dresden.de

não lida,
15 de jul. de 2016, 10:25:5315/07/2016
para Scala IDE User
No, neither.

Scott Carey

não lida,
9 de ago. de 2016, 19:48:1009/08/2016
para Scala IDE User
In my experience, SBT on the command line is always faster than the IDE, sometimes 5x faster.

A few things that help:

  Disconnect "team" (git or svn or whatever) from your project.  Somehow the team plugin drastically slows down Eclipse when Scala IDE is enabled.  I have no idea why, Its been this way for years.  Don't let it auto-detect your source control state and reconnect either.  This turns off all of the file / path annotations in the tree that show whether a file is in sync or out of sync with your scource control, etc.    (select all projects, go to "team" and "disconnect" -- then change your prefs to not auto-detect).

  Change Eclipse to only build when you ask it to (command-B on mac), not on every save / modification  (un-check `Build Automatically`).

Those were the two biggest improvements to user responsiveness and compile times for me.   On one of my projects, the second one is mandatory or else the IDE is basically unusable, with frequent 1+ minute long unresponsive pauses.

wpopie...@virtuslab.com

não lida,
10 de ago. de 2016, 02:26:2310/08/2016
para Scala IDE User
Hello
the good news is that we enable SBT server compiler in coming release :). But I cannot say if it will make compilation faster ;).

W.
Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem