The Android documentation advises that Composable functions shall have no side effects, and one of their reasons is that "Composable functions could be run in parallel" (https://developer.android.com/develop/ui/compose/mental-model#parallel)
Compose doesn't do that (yet), but I'd love to know whether the Compose team is still considering doing that, and how big its impact on performance could be?
p
Pearce Keesling
02/15/2025, 4:43 PM
One of the 1.8.0 alphas mentions adding pausable composables which seems loosely related. I haven't seen any documentation explaining what that's all about though
z
Zach Klippenstein (he/him) [MOD]
02/15/2025, 5:52 PM
Pausable composition is a feature that lets subcompositions be gradually subcomposed over multiple frames. So it runs compositions concurrently I guess, but not in parallel.