diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-04-14 02:23:59 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-04-14 02:50:04 +0200 |
commit | d773a32c9731dd5b105ac718900f8217fa75bcb2 (patch) | |
tree | 590d781ef7f81663e3baff0df9920b8ac1e52c2b /tests/untried | |
parent | 9e45ad16d012e6a2ff3be411c2fe101b1c74b831 (diff) | |
download | dotty-d773a32c9731dd5b105ac718900f8217fa75bcb2.tar.gz dotty-d773a32c9731dd5b105ac718900f8217fa75bcb2.tar.bz2 dotty-d773a32c9731dd5b105ac718900f8217fa75bcb2.zip |
Make warm compilation speed with sbt 2x faster
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`).
Diffstat (limited to 'tests/untried')
0 files changed, 0 insertions, 0 deletions