Skip to content

Commit bfbcbba

Browse files
committed
Add Scala compiler optimization options for benchmarks
1 parent f8027b3 commit bfbcbba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ lazy val `jsoniter-scala-benchmark` = crossProject(JVMPlatform, JSPlatform)
236236
.settings(
237237
crossScalaVersions := Seq("3.6.2", "2.13.15"),
238238
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
239-
case Some((2, _)) => Seq()
240-
case _ => Seq("-source:3.3", "-Xmax-inlines:100")
239+
case Some((2, _)) => Seq("-Wopt", "-opt:l:inline", "-opt-inline-from:**:!java.**")
240+
case _ => Seq("-source:3.3", "-Xmax-inlines:100", "-language:experimental.betterFors")
241241
}),
242242
libraryDependencies ++= Seq(
243243
"com.disneystreaming.smithy4s" %%% "smithy4s-json" % "0.18.27",

0 commit comments

Comments
 (0)