Closed
Description
I have created this repository by removing most of the dependencies and plugins: https://github.com/keynmol/smithy4s-aws-only
It contains ~428 Scala files.
You can switch Scala version using environment variable:
$ SCALA_VERSION="2.13.13" sbt -Dsbt.task.timings=true 'clean;compile' 2>&1 | grep "root / Compile / compileIncremental"
[info] root / Compile / compileIncremental : 28178 ms
$ SCALA_VERSION="3.3.3" sbt -Dsbt.task.timings=true 'clean;compile' 2>&1 | grep "root / Compile / compileIncremental"
[info] root / Compile / compileIncremental : 146483 ms
$ SCALA_VERSION="3.4.1" sbt -Dsbt.task.timings=true 'clean;compile' 2>&1 | grep "root / Compile / compileIncremental"
[info] root / Compile / compileIncremental : 158857 ms
I'm observing consistent 5x slowdown compared to 2.13 - the code doesn't change (no codegenerators).
Minimising it further would be difficult, as this difference is most pronounced on this relatively large amount of files.