Filip Wiesner
04/28/2023, 2:38 PMCompose:applyChanges
takes over 500ms - what do I do? 😄
I have a fairly complicated layout with a lot of Crossfades and stuff changing. What are the things I should be primarily looking for? Stability of parameters, recomposition counts, heavy calculation inside composables (filtering, mapping lists) and things like that? I am not looking for any specifics, just generally some steps which would you go through when encountering this sort of problem.shikasd
04/28/2023, 3:50 PMDisposableEffect
or similar blocks that are doing too much workLayoutNode
inside movable content, if crossfade uses it. If that's the case, consider wrapping the content with BoxWithConstraints
, which contains subcomposition. It is a bit hacky way of fixing it, but can generally help 🙂Filip Wiesner
04/28/2023, 3:57 PM