diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-19 20:52:29 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-27 23:54:16 -0400 |
commit | f5fe60ada0a550907a378592ee07291ee157f275 (patch) | |
tree | 34e87ed0fb42885caabeea72ab11439885aa62fc /stage2 | |
parent | e5940451943d360193af8fb52e65c3eadd980f87 (diff) | |
download | cbt-f5fe60ada0a550907a378592ee07291ee157f275.tar.gz cbt-f5fe60ada0a550907a378592ee07291ee157f275.tar.bz2 cbt-f5fe60ada0a550907a378592ee07291ee157f275.zip |
performance: cache moduleKey and make it’s string concat quicker
Diffstat (limited to 'stage2')
-rw-r--r-- | stage2/BasicBuild.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala index 18b1754..067d1b7 100644 --- a/stage2/BasicBuild.scala +++ b/stage2/BasicBuild.scala @@ -17,7 +17,7 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with SbtDep // will create new instances given the context, which means operations in the // overrides will happen multiple times and if they are not idempotent stuff likely breaks def context: Context - def moduleKey: String = "BaseBuild("+target.string+")" + lazy val moduleKey: String = "BaseBuild("+target.string+")" implicit def transientCache: java.util.Map[AnyRef,AnyRef] = context.transientCache implicit def libraries(implicit context: Context): libraries = new libraries(context) |