Hello! I just noticed that after updating to `vers...
# decompose
p
Hello! I just noticed that after updating to
version 2.1.0-compose-experimental-alpha-07
from version
2.1.0-compose-experimental-alpha-06
, the build time for iOS has increased several times. I have kotlin 1.9 in my project
build time with
alpha-07
~5 minutes, with
alpha-06
~1 minute
a
That's most likely due to Kotlin 1.9.0. I've seen multiple reports across this Slack.
🥲 1
Or are seeing the difference by just updating Decompose, on the same Kotlin version?
p
Just updating decompose
Kotlin in project is 1.9 for both decompose versions
a
Could you please share both build scans? Both with --no-build-cache and --rerun-tasks options.
p
Yes, a little bit later
just
./gradlew build --scan --no-build-cache --rerun-tasks
?
a
Yes
p
it fails 😡
Copy code
:resources:compileCommonMainKotlinMetadata FAILED	
e: java.lang.IllegalStateException: e: Could not find "/Users/shpasha/StudioProjects/funts1/resources/build/kotlinTransformedMetadataLibraries/commonMain/org.jetbrains.kotlinx-atomicfu-0.17.3-nativeInterop-8G5yng.klib" in [/Users/shpasha/Library/Application Support/kotlin/daemon]
a
Which command you were running when you noticed the difference?
p
just ios build using KMM pluign
a
There should be a Gradle task running. You can try running the same task with both versions of Decompose plus --scan --no-build-cache --rerun-tasks
Or, if you could share a reproducer, that would be also helpful.
p
i dont know what tasks are called, so i just try to call
:composeApp:compileKotlinIosSimulatorArm64
hope this is helpful
Copy code
./gradlew :composeApp:compileKotlinIosSimulatorArm64 --scan --no-build-cache  --rerun-tasks
alpha-06 alpha-07
a
Thanks! This looks pretty unexpected, I would say. Even
:resources:compileKotlinIosSimulatorArm64
task which doesn't depend on Decompose takes 1.5x time. I have noticed
kotlin.native.cacheKind
is set to
none
. Could you please try removing this property? It shouldn't be needed with Kotlin 1.9.0. Also, it would be nice to have a reproducer project. Would it be possible to provide?
Thanks for providing the reproducer privately. I had to disable cocoapods plugin in the project (because I don't have it installed), and somehow I don't see any difference between using Decompose
version 2.1.0-compose-experimental-alpha-06
and
2.1.0-compose-experimental-alpha-07
. The
:composeApp:compileKotlinIosSimulatorArm64 --scan --no-build-cache  --rerun-tasks
command takes ~52 seconds on my machine for both versions. You can try disabling cocoapods just to check if it makes any difference. Otherwise it could be an issue with your environment. You can also try cleaning Gradle caches, as Kotlin update may confuse things.
p
Thank you Clearing all caches after the update really had a positive effect on the time of subsequent builds
👍 2