https://kotlinlang.org logo
#compose
Title
# compose
a

Aaron Waller

05/24/2022, 9:05 AM
Anyone else has a worse performance using Grid Layouts in compose compared to the old View System? I know the common solution is to use R8 and using the release build apk. I mean yes it is much better but not as good as the old view System. Especially when you use 4-5 Columns.
Overall Compose feels much slower eventhough I'm using best practices
1
😮 1
n

Norbi

05/24/2022, 11:14 AM
Are you sure there aren't too many costly recompositions? Have you tried lazy layouts? Maybe try this useful tool: https://kotlinlang.slack.com/archives/C01D6HTPATV/p1648388306173459?thread_ts=1648320017.059669&cid=C01D6HTPATV
f

FunkyMuse

05/25/2022, 1:56 PM
I use LazyVerticalGrid it's faster than recyclerview, check your recomposition count Test it in release and then compare it.
👍🏻 1
5 Views