mirror of https://github.com/sbt/sbt.git
Switch to using the interned serialization format.
This commit is contained in:
parent
0b033337df
commit
c66eefcec9
|
|
@ -180,7 +180,8 @@ class AggressiveCompile(cacheFile: File)
|
|||
private[this] def explicitBootClasspath(options: Seq[String]): Seq[File] =
|
||||
options.dropWhile(_ != CompilerArguments.BootClasspathOption).drop(1).take(1).headOption.toList.flatMap(IO.parseClasspath)
|
||||
|
||||
import AnalysisFormats._
|
||||
val formats = new sbt.inc.InternedAnalysisFormats()
|
||||
import formats._
|
||||
val store = AggressiveCompile.staticCache(cacheFile, AnalysisStore.sync(AnalysisStore.cached(FileBasedStore(cacheFile))))
|
||||
}
|
||||
object AggressiveCompile
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ object IC extends IncrementalCompiler[Analysis, AnalyzingCompiler]
|
|||
def readCacheUncaught(file: File): (Analysis, CompileSetup) =
|
||||
{
|
||||
import sbinary.DefaultProtocol.{immutableMapFormat, immutableSetFormat, StringFormat, tuple2Format}
|
||||
import sbt.inc.AnalysisFormats._
|
||||
val formats = new sbt.inc.InternedAnalysisFormats()
|
||||
import formats._
|
||||
sbt.IO.gzipFileIn(file)( in => sbinary.Operations.read[(Analysis, CompileSetup)](in) )
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,8 @@ object Sync
|
|||
import sbinary._
|
||||
import Operations.{read, write}
|
||||
import DefaultProtocol.{FileFormat => _, _}
|
||||
import inc.AnalysisFormats._
|
||||
val formats = new sbt.inc.InternedAnalysisFormats()
|
||||
import formats._
|
||||
|
||||
def writeInfo[F <: FileInfo](file: File, relation: Relation[File, File], info: Map[File, F])(implicit infoFormat: Format[F]): Unit =
|
||||
IO.gzipFileOut(file) { out =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue