OptimizeNonSkippingGroups

Remove groups around non-skipping composable functions.

Removing groups around non-skipping composable function is an experimental mode which improves the runtime performance of your application by skipping unnecessary groups around composable functions which do not skip (and thus do not require a group). This optimization will remove the groups around functions that are not skippable such as explicitly marked as @NonSkippableComposable and functions that are implicitly not skippable, such as inline functions and functions that return a non-Unit value such as remember.

This feature is still considered experimental and is thus disabled by default. To enable, add this line to the composeCompiler {} block:

composeCompiler {
featureFlags = setOf(ComposeFeatureFlag.OptimizeNonSkippingGroups)
}