scala/scala — pull request #1033 by VladUreche (2012-08-01 10:25:50+00:00)
Title: 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 third step if java files were non-empty,
leading to a 25% partest speedup.*

Review by @paulp.

* as measured on test.scaladoc