harrah/xsbt — Issue #322: Compile in multiple stages when the number of source files in the transitive closure is much larger than the number of immediate dependencies
Author: surajacharya
Created: 2012-01-03 21:20:00+00:00
State: open

I work with a large project where there are few files that are depended on by many other files, which results in many files being recompiled when almost any files are edited to have API changes. Right now it looks like sbt starts from the files which have API changes and finds the transitive closure of the source files dependent on them, and compiles the full set.

Would it still be correct to check if there's a large difference in size between the number of immediate dependents and the transitive closure, and if this were the case to compile just the immediate dependents, find the artifacts with API changes and then repeat the process of checking for immediate and transitive dependents?