From 63f72399537331d30a32d1e71e238c6e97dabc3e Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Sun, 25 Feb 2018 11:35:28 -0800 Subject: Save the signature of a `PathRef` to avoid re-stating files every time they are de-serialized --- main/src/mill/main/RunScript.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/src/mill/main/RunScript.scala b/main/src/mill/main/RunScript.scala index ff0f5b62..6f8c5293 100644 --- a/main/src/mill/main/RunScript.scala +++ b/main/src/mill/main/RunScript.scala @@ -58,7 +58,7 @@ object RunScript{ evaluator <- evalRes (evalWatches, res) <- Res(evaluateTasks(evaluator, scriptArgs, multiSelect = false)) } yield { - val alreadyStale = evalWatches.exists(p => p.sig != new PathRef(p.path, p.quick).sig) + val alreadyStale = evalWatches.exists(p => p.sig != PathRef(p.path, p.quick).sig) // If the file changed between the creation of the original // `PathRef` and the current moment, use random junk .sig values // to force an immediate re-run. Otherwise calculate the -- cgit v1.2.3