Hi there! I'm having a Compose Multiplatform proje...
# compose-android
m
Hi there! I'm having a Compose Multiplatform project. I'd like to measure how changes to Composables affect our local Compose Preview speed using the Gradle profiler. The 'Build & Refresh' link in the Compose previews will run
:module:compileAndroidMain
, so I can call that as a clean and then run the same again for the measured benchmark. With the option
apply-kotlin-composable-change-to
of the Gradle profiler I can simulate adding a Composable. So this all works , and it measures how fast
compileAndroidMain
runs, but this takes between 500ms and over 2s for some modules. I feel that the previews in the IDE are usually quicker, I presume because they don't run
compileAndroidMain
. Does someone know which Gradle tasks (if any) are run by the IDE when quickly iterating on Compose previews? Or does it completely avoid calling Gradle? Thanks!
👀 1