https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
s

solonovamax

10/20/2023, 1:18 PM
hi, I tried using k2 with my project, and I experienced extremely log build times for it I don't have any concrete benchmarks to compare, but it took the compilations from like 10-20 seconds to upwards of a few minutes, which was a massive regression (though perhaps that's only because it previously had everything cached? unsure.) I'm going to profile/measure it later, so I can give more concrete measurements for it. my project is a multiplatform library, though it is currently only comprised of common code, no platform-dependent code, but k2 should be built with that in mind, no?
r

Robert Jaros

10/20/2023, 1:39 PM
I have the opposite experience. K2 compilation is almost twice as fast (js and wasmJs targets with most of the code in the common module, Kotlin 1.9.20-Beta2).
s

solonovamax

10/20/2023, 1:41 PM
I believe that the longest compilation was due to compiling the jvm code, but I could be mis-remembering