Hi everyone, did anyone noticed that twitter and g...
# compose
s
Hi everyone, did anyone noticed that twitter and google play store app for android has lagging in scrolling(scrolling stucks in between) on their home pages and both of them are using jetpack compose now. So can we say that still jetpack compose is not that performant as android with xml and its not ready for performance intensive production apps?
j
Correlation without causation, I would say. Both of those apps have always fought with jank due to the diversity of content and richness (in terms of media) that is being displayed.
s
Thanks @jw, but i was checking the now in android official sample as well. It has only one or two images in a single post that are being loaded from network , even i commented out one image also, so then it was having the one image only being loaded from networm, but still it has lagging on scroll even with the single image and some text in each list item in LazyVerticalGrid(even i tried LazyColumn as well, result was little better but not that much ). I was checking the release build with R8 enabled, and also with baseline profile. So cant we handle even single image loading from network in a list with jetpack compose? Its being loaded using AsyncImage. Or is there anything available there that i may be missing?
s
LazyList is nowhere near as smooth as RecyclerView when scrolling (yet - hopefully). The difference is huge in old/mid-low end devices
t
Be sure to be on the latest compose versions. Next 1.3 beta 4 will finally have all the mem leaks fixed and is performing perfectly fine in prod with tons of images and lazy lists. Be sure to check your recomposition and your composable stable/skippable status 🙂
s
Yeah, hopefully. I haven't tried beta 3 yet (didn't have the time), but I'm happy the new memory leak is fixed 🙂
t
It will be in B4 :)
s
Thanks, you just saved me a ton of headache :3
b
Snap this will be glorious. Been rocking 1.2 for a client and dealing with low end screen jitter