aboutsummaryrefslogtreecommitdiff
path: root/sbt-bridge/src/xsbt/CompilerClassLoader.scala
Commit message (Collapse)AuthorAgeFilesLines
* Make CompilerClassLoader#fixBridgeLoader synchronizedGuillaume Martres2017-04-151-1/+2
| | | | | This method could be called from multiple threads since sbt could run multiple `compile` task in parallel.
* Make warm compilation speed with sbt 2x fasterGuillaume Martres2017-04-141-1/+14
| | | | | | | | | | | | | | | | | | | Previously, every call to `compile` in sbt with dotty took about the same time because we created a new ClassLoader everytime and thus thrased the JIT code cache, by reusing ClassLoaders we can make `compile` about 2x faster. You can reproduce this by running: > dotty-compiler-bootstrapped/compile This takes ~50 seconds on my machine. Then clean using: > ;dotty-compiler-bootstrapped/clean;dotty-compiler-update And run `dotty-compiler-bootstrapped/compile` again, this takes ~25 seconds for me. I get very similar timings from scalac (replacing `dotty-compiler-bootstrapped` by `dotty-compiler`).
* Make every project use the new directory structureGuillaume Martres2016-11-221-0/+90