I have a `LazyVerticalGrid` with a lot of boxes in...
# compose
s
I have a
LazyVerticalGrid
with a lot of boxes in it (containing images, it's a photo app). Each Box has a
Modifier.clickable { openElement(element) }
on it. If I remove this modifier my scroll speed is much faster. It seems to be a problem to create the lambda and modifier over and over again for each of the thousands of entries as a user scrolls by. Is there any way I can solve this in a away without creating a lambda for each entry?
👀 2
l
Have you tried a release build yet?
s
Yes, even with
minifiyEnabled true
this is a problem. It seems to be costly to create and GC the lambda.