diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2012-08-01 12:30:11 +0200 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2012-08-04 02:06:11 +0200 |
commit | 434adb151083a658b498ffb9c3284f6bb471597a (patch) | |
tree | ab31fc86ee6aeccd5f847dac2f48dc76096d82f3 /src/detach | |
parent | 4e7bf2f519d3008411922737fab9050bd00535b0 (diff) | |
download | scala-434adb151083a658b498ffb9c3284f6bb471597a.tar.gz scala-434adb151083a658b498ffb9c3284f6bb471597a.tar.bz2 scala-434adb151083a658b498ffb9c3284f6bb471597a.zip |
Want a 25% partest speedup?*
... well then, don't compile twice!
Explanation:
The compilation process in partest happens in 3 stages:
- scala + java files, all fed to scalac (so the java signatures are
loaded and the scala bytecode is generated)
- java files, fed to javac (so the java bytecode is generated)
- scala files, fed to scalac (so the scala bytecode correctly links
to the javac-generated bytecode)
While this mechanism is great to have, for simple 1-file scala tests
it's overkill by compiling scala files twice. So I adjusted the compile
procedure to only run the first step if java files are empty, leading
to a 25% partest speedup.*
Also included Seth Tisue's comment about the tests that require the
three-step compilation.
* as measured on test.scaladoc
Diffstat (limited to 'src/detach')
0 files changed, 0 insertions, 0 deletions