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..626444e1 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")), )