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

Ashu

12/09/2021, 3:41 PM
Is LazyColumn really performance effective? My LazyColumn seems to be to janky and lagging on scroll. Is there any specific case for it or is it just bad in general? Also are there any best practices for combination of views in LazyColumn?
b

Bryan Herbst

12/09/2021, 3:47 PM
Are you testing on a release or debug build? Debug builds have a few performance challenges with compose, and many of those are “fixed” in release builds. You should see very different performance between the two. Unfortunately Views have the advantage of being optimized & shared throughout the entire platform, while Compose needs to rely on compile time optimization (some of which is skipped for debug builds to make the build faster).
s

Sergey Y.

12/09/2021, 6:48 PM
Yes, it is. I made my set of tests for that case. Compose UI can run well on mid-priced devices, but some things still need some work or polishing to be quite good. https://github.com/desugar-64/android-compose-performance-teste
a

Ashu

12/09/2021, 6:57 PM
Thank you @Bryan Herbst & @Sergey Y. I will try to test it out on a release build and see. But it feels like some issues still need to be ironed out in compose.
2 Views