LazyColumn causing lag due to calculations for each item - How can I optimize it?
I'm experiencing significant lag when displaying a LazyColumn in my Jetpack Compose application. Each item in the LazyColumn involves some calculations that are done before the data is shown to the user.
Here's what I'm working with:
I have a data class that represents each item.
I fetch a list of these objects from a server and pass it to the LazyColumn.
Each item involves calculations that happen inside the composable and can vary depending on the input.
Once the calculations are done, the...