From b1dbcca32dfa11f07b0ec966c3e3c6f370c095c9 Mon Sep 17 00:00:00 2001 From: Kevin Boyette Date: Fri, 26 Dec 2025 11:41:36 -0500 Subject: [PATCH 1/2] use sbt's pipelining and turbo for the build --- .jvmopts | 9 ++++++++- build.sbt | 8 +++++--- project/Settings.scala | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.jvmopts b/.jvmopts index 2ac7fff2..bf258193 100644 --- a/.jvmopts +++ b/.jvmopts @@ -1,2 +1,9 @@ -Xmx16G --Xss4M \ No newline at end of file +-Xms2G +-Xss4M +-XX:+UseG1GC +-XX:MaxGCPauseMillis=200 +-XX:+ParallelRefProcEnabled +-XX:ReservedCodeCacheSize=512m +-XX:MaxMetaspaceSize=2G +-XX:CICompilerCount=2 \ No newline at end of file diff --git a/build.sbt b/build.sbt index a71bf2d7..bb9ba338 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,3 @@ -// - import Dependencies._ import Settings._ import sbtcrossproject.CrossProject @@ -11,7 +9,11 @@ import scala.sys.process._ ThisBuild / watchBeforeCommand := Watch.clearScreen ThisBuild / resolvers ++= Seq(Resolver.sonatypeCentralSnapshots, Resolver.mavenLocal) -ThisBuild / updateOptions := updateOptions.value.withLatestSnapshots(false) + +Global / concurrentRestrictions := Seq( + Tags.limitAll(math.max(1, java.lang.Runtime.getRuntime.availableProcessors() - 1)) +) +ThisBuild / turbo := true enablePlugins(GitVersioning) git.gitTagToVersionNumber := { tag => diff --git a/project/Settings.scala b/project/Settings.scala index a207f963..78a4de9f 100644 --- a/project/Settings.scala +++ b/project/Settings.scala @@ -27,7 +27,7 @@ object Settings { scalacOptions ++= Seq("-source:future", "-Ycheck-all-patmat", "-Wunused:all", "-Werror", "-language:implicitConversions", "-deprecation", "-feature", "-Yretain-trees"), name := { throw new RuntimeException("You must define a project name!!!") }, javacOptions ++= Seq("-source", "17", "-target", "17"), - usePipelining := false, + usePipelining := true, description := { throw new RuntimeException("You must define a project description!!!") }, testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")), ) From a5eb9aefbc27b9501ed3c2cb9cbfd24f158c52f2 Mon Sep 17 00:00:00 2001 From: Kevin Boyette Date: Fri, 26 Dec 2025 14:00:58 -0500 Subject: [PATCH 2/2] run sbt format --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index bb9ba338..626444e1 100644 --- a/build.sbt +++ b/build.sbt @@ -11,7 +11,7 @@ ThisBuild / watchBeforeCommand := Watch.clearScreen ThisBuild / resolvers ++= Seq(Resolver.sonatypeCentralSnapshots, Resolver.mavenLocal) Global / concurrentRestrictions := Seq( - Tags.limitAll(math.max(1, java.lang.Runtime.getRuntime.availableProcessors() - 1)) + Tags.limitAll(math.max(1, java.lang.Runtime.getRuntime.availableProcessors() - 1)), ) ThisBuild / turbo := true