allan.conda
07/07/2022, 6:28 AMPainter
and Icon
are unstable and keeping the function as non-skippable. Any ideas how else I could optimize my Coil Image Grid? Or does coil already able to optimize this somehow. It’s quite slowBen Trengrove [G]
07/07/2022, 7:38 AMallan.conda
07/07/2022, 9:43 AMrestartable scheme("[androidx.compose.ui.UiComposable]") fun Thumbnail(
unstable painter: Painter
stable contentDescription: String?
stable modifier: Modifier? = @static Companion
)
item.thumbnailUrl
-> Thumbnail( rememberImagePainter(Any)
)Ben Trengrove [G]
07/07/2022, 9:46 PMallan.conda
07/08/2022, 7:32 AMThumbnail
is just a wrapper to Image
and we use rememberImagePainter
.
That’s a good point though, we pass either Painter
or Any
, but I’ll try passing stable params String
as much as possible.
I tried Coil 2.0 before as a draft and there were actually performance improvements (though the huge janks were still there in my previous thread)