Oliver.O
09/13/2022, 10:48 AMOliver.O
09/13/2022, 10:49 AMText
or
• AnimatedContent
surrounding a Text
.
If I do this as usual, the switch between non-animated and animated grid makes the UI unresponsive for up to 18 seconds (Desktop), mainly due to excessive slot table updates. Once I hide the grid at switching time until the next recomposition, those times drop to less than 4 seconds. I wonder if this is 'as expected' or if the Compose team might be interested in optimizing the current slot table design to speed up patterns like this.
The complete application is at https://github.com/OliverO2/compose-counting-grid.
Analysis details are available in SwitchingAnimationVariants.md.
The original discussion started here: https://kotlinlang.slack.com/archives/C01F2HV7868/p1661276144118359?thread_ts=1660234424.503779&cid=C01F2HV7868Oleksandr Karpovich [JB]
09/14/2022, 7:53 AMChuck Jazdzewski [G]
09/14/2022, 4:14 PMkey
composable. Surround the composition with key
and change the key any time you want to force compose to recompose the entire tree.Oliver.O
09/14/2022, 4:20 PMkey
thing has been tried (by me and others) and did not change the timing. The underlying problem seems to be that the 'old' grid remains in place until the 'new' one has finished composing and key
does not change this, even if passed an incrementing counter on each change.Oliver.O
09/14/2022, 4:46 PM