Use mutableFloatStateOf instead of mutableStateOf<Float> in Compose
ProprietaryCompose's mutableFloatStateOf keeps the wrapped value as a primitive Float, avoiding the autobox-and-unbox cost that mutableStateOf<Float> pays on every read and write inside a recomposition.
org. openrewrite. kotlin. performance. UseMutableFloatStateOf$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. performance. UseMutableFloatStateOf$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.