Use mutableDoubleStateOf instead of mutableStateOf<Double> in Compose
ProprietaryCompose's mutableDoubleStateOf keeps the wrapped value as a primitive Double, avoiding the autobox-and-unbox cost that mutableStateOf<Double> pays on every read and write inside a recomposition.
org. openrewrite. kotlin. performance. UseMutableDoubleStateOf$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. performance. UseMutableDoubleStateOf$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.