, and see the below triggered. So I believe R8 is enabled. The result is the same.
s
seb
10/10/2021, 2:37 PM
Note that debug builds are considerably slower than release builds and you should never do perf optimisation based on debug builds, especially when it comes to Compose
w
Will Shelor
10/10/2021, 9:32 PM
If you don’t have to do this, I would suggest against it. In my experience, multiple ComposeViews is indeed reasonably slower to render than a single ComposeView or XML. In my testing, what you’ve described is one of the slowest ways of doing Compose. Is there any reason you don’t want to use LazyColumn?
e
elye
10/10/2021, 10:35 PM
It’s partly we can do incremental migration of a big live project. True, having LazyColumn would be ideal.
z
Zach Klippenstein (he/him) [MOD]
10/12/2021, 2:23 AM
You can also put Android views in composables so you could still do incremental migration
w
Will Shelor
10/12/2021, 4:59 AM
I’d say you’ll have better luck converting the full content of your RecyclerView one RecyclerView at a time. The more ComposeViews on a screen at a time, the worse the performance is (it’s not a deal breaker, but if you’ve got a bunch of them it’ll probably be noticeably slow, even on production builds).