are there any estimations/experiments on how much ...
# gradle
p
are there any estimations/experiments on how much faster Gradle will become once it adopts K2?
of course, “your mileage may vary”, depending on the complexity of configs, but some ballpark numbers perhaps?
v
Dunno whether it is up-to-date still, but https://github.com/gradle/gradle/issues/21284 is about trying out K2 and says scripting is not yet supported. No idea whether that changed though, but maybe you can ask there and follow.
👍 2
z
Compilation would presumably get faster, but that’s amortized considering you compile buildscripts once. Runtime speed is unchanged
👍 1
👍🏾 1
c
I recall seeing somewhere that the compiler "frontend" is looking to be about 2x faster. For compiling the project code with Gradle, there should be some improvement to compilation time, but I believe more time is spent in the "backend" overall so I don't think raw compilation speed will quite be 2x. The most noticeable performance improvement is expected to be the IDE experience (syntax highlighting, code inspections,etc), since that's built with the same compiler frontend. For Gradle scripts themselves which are written in Kotlin, there might be some minor improvement, but the Kotlin compiler speed is almost certainly not the limiting factor in your build performance. Kotlin scripts get cached so only the first build is really impacted by compiler speed. If you've got a slow build now, K2 is not going to magically fix it. You should look into optimizing for Gradle features like configuration cache and incremental compilation instead