Hey guys, I've been building a feed with Compose's...
# compose
a
Hey guys, I've been building a feed with Compose's LazyList and Paging 3 but the scrolling turned out to be annoyingly janky and it's more noticeable since it lives next to a smooth RecyclerView feed, I've made sure that all my composables are restartable and skippable but it's still bad .. the only thing that made a noticeable difference was curiously replacing Compose's Image with an AndroidView containing an ImageView, but still, it remains quite janky. Is this a common problem? am I doing something wrong? any suggestions?
I also added an item key for each item, didn't make that much of a difference
p
Try to run it in release mode with R8 enabled. According to documentation on debug builds the lazy list scrolling may be slower.
a
I do run it on release with R8, unfortunately still janky
e
You need to figure out where most of the time is spent https://developer.android.com/jetpack/compose/performance/tracing
c
Can you post snippets of your lazy column?
a
@efemoney that looks interesting, will check it out, thank you!
@Chris Johnson I don't have an isolated snippet right now, i'll prepare one and post it here if the tracing failed to find the issue, thank you!