measure the entire list on first composition, and only composes the visible items? Or is the measurement also only done for the visible items?
Michael Elgavi
02/02/2021, 12:13 PM
My list seems to be taking a long time (several seconds) to measure, and I can't seem to optimize it any further.
z
Zach Klippenstein (he/him) [MOD]
02/02/2021, 2:00 PM
Last time I looked it only subcomposes the visible items, which means it can only measure them as well.
Zach Klippenstein (he/him) [MOD]
02/02/2021, 2:00 PM
What does the Android studio profiler say is taking all the time?
m
Michael Elgavi
02/02/2021, 2:43 PM
Looking at the profiler, I was able to optimize a bit.
A lot of time was taken up by
rememberVectorPainter()
calls from an icon which was repeated many times. Replaced with one call for the whole list which helped a lot. Text layout also seems pretty heavy, I tried setting
softWrap
to false, which also helped a bit. Still slower than I'd like.
Investigating further...