Is there a way to find out what is causing a (re)c...
# compose
t
Is there a way to find out what is causing a (re)composition?
z
Not easily – why do you ask?
t
Just trying to find out what's causing some scrolling lag when a particular composition comes into view
z
You could try using the regular android studio profiler to see if something’s doing a ton of work on the UI thread
t
yeah, it's all in composition functions
just trying to understand what state is changing to cause that
z
can you post any code?
t
i'll need some time to distill it down, i'm doing some crazy stuff with
nestedScroll
to do a collapsing app bar
Alright, it's not even that. LazyColumn is spending most of its time in
LazyListState.onScroll
, which spends like half a second calling
remeasurement.forceRemeasure
z
You should definitely file a bug, performance seems to be the primary focus of the compose team at this point and this investigation would probably be super helpful
t
will do, thanks