question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Start up time in sbt 1.0.0-RC2 is slower

See original GitHub issue
jvican in /data/rw/code/scala/experiment-performance                                                         [12:04:03] 
> $ vim project/build.properties // change to 0.13.16-M1
                                                                                                                        
jvican in /data/rw/code/scala/experiment-performance                                                         [12:04:11] 
> $ time sbt "exit"             
[info] Loading global plugins from /home/jvican/.sbt/0.13/plugins
[info] Updating {file:/home/jvican/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Compiling 1 Scala source to /home/jvican/.sbt/0.13/plugins/target/scala-2.10/sbt-0.13/classes...
[info] Loading project definition from /data/rw/code/scala/experiment-performance/project
[info] Updating {file:/data/rw/code/scala/experiment-performance/project/}experiment-performance-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to experiment-performance (in build file:/data/rw/code/scala/experiment-performance/)
/home/jvican/bin/sbt "exit"  39.40s user 0.70s system 321% cpu 12.476 total
                                                                                                                        
jvican in /data/rw/code/scala/experiment-performance                                                         [12:04:26] 
> $ time sbt "exit"
[info] Loading global plugins from /home/jvican/.sbt/0.13/plugins
[info] Loading project definition from /data/rw/code/scala/experiment-performance/project
[info] Set current project to experiment-performance (in build file:/data/rw/code/scala/experiment-performance/)
/home/jvican/bin/sbt "exit"  13.05s user 0.25s system 296% cpu 4.493 total
                                                                                                                        
jvican in /data/rw/code/scala/experiment-performance                                                         [12:04:33] 
> $ time sbt "exit"
[info] Loading global plugins from /home/jvican/.sbt/0.13/plugins
[info] Loading project definition from /data/rw/code/scala/experiment-performance/project
[info] Set current project to experiment-performance (in build file:/data/rw/code/scala/experiment-performance/)
/home/jvican/bin/sbt "exit"  12.64s user 0.26s system 294% cpu 4.385 total
                                                                                                                        
jvican in /data/rw/code/scala/experiment-performance                                                         [12:04:48] 
> $ vim project/build.properties // change to sbt 1.0.0-RC2
                                                                                                                        
jvican in /data/rw/code/scala/experiment-performance                                                         [12:04:54] 
> $ time sbt "exit"             
[info] Loading project definition from /data/rw/code/scala/experiment-performance/project

[info] Loading settings from build.sbt ...

[info] Set current project to experiment-performance (in build file:/data/rw/code/scala/experiment-performance/)

/home/jvican/bin/sbt "exit"  22.35s user 0.34s system 291% cpu 7.778 total
                                                                                                                        
jvican in /data/rw/code/scala/experiment-performance                                                         [12:05:04] 
> $ time sbt "exit"
[info] Loading project definition from /data/rw/code/scala/experiment-performance/project

[info] Loading settings from build.sbt ...

[info] Set current project to experiment-performance (in build file:/data/rw/code/scala/experiment-performance/)

/home/jvican/bin/sbt "exit"  14.34s user 0.29s system 267% cpu 5.477 total
                                                                                                                        
jvican in /data/rw/code/scala/experiment-performance                                                         [12:05:13] 
> $ time sbt "exit"
[info] Loading project definition from /data/rw/code/scala/experiment-performance/project

[info] Loading settings from build.sbt ...

[info] Set current project to experiment-performance (in build file:/data/rw/code/scala/experiment-performance/)

/home/jvican/bin/sbt "exit"  13.74s user 0.22s system 266% cpu 5.247 total
                                                                            

We have to figure out why. The tested project has the following build.sbt:

name := "experiment-performance"
organization := "ch.epfl.scala"
libraryDependencies ++= List(
  "io.circe" %% "circe-core" % "0.8.0",
  "io.circe" %% "circe-generic" % "0.8.0",
  "io.circe" %% "circe-parser" % "0.8.0",
  "com.chuusai" %% "shapeless" % "2.3.2"
)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:21
  • Comments:38 (14 by maintainers)

github_iconTop GitHub Comments

9reactions
yellowmegamancommented, May 31, 2018

Any news here?

[info] Updating ProjectRef(uri("file:/drone/src/bitbucket.org/someteam/somrepo/someproject/"), "server-build")... 
  46s
[info] Done updating.   766s

sbt 1.1.4

So it’s 720 seconds really ((

7reactions
schmitchcommented, Feb 4, 2018

this is even worse on first runs (which might often happen in docker build-Environments). The sbt 1.x.x builds hanging forever at Loading project definition from. Well at least dependency resolution is faster when coursier is plugged in…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Start up time in sbt 1.0.0-RC2 is slower - - Bountysource
Start up time in sbt 1.0.0-RC2 is slower.
Read more >
sbt Reference Manual — Combined Pages
Starts the Scala REPL with project classes and dependencies on the classpath ... requires JVM spinup and JIT each time, so your build...
Read more >
Why is `Resolving` so slow in the compiling stage of SBT?
It is when ivy (which sbt uses for dependency management) looks through the dependency graph of the project to figure out all dependencies...
Read more >
Opening scala sbt project unbearably slow. : SCL-14200
yes, all projects. I attach the sbt import config. · sbt-shell import worsens the startup time (first the shell, then sbt dump from...
Read more >
eed3si9n
As the starting point we'll use the following setup, which is documented in Setting up GitHub Actions with sbt: name: CI on: pull_request:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found