Use mutableLongStateOf instead of mutableStateOf<Long> in Compose

Proprietary

Compose's mutableLongStateOf keeps the wrapped value as a primitive Long, avoiding the autobox-and-unbox cost that mutableStateOf<Long> pays on every read and write inside a recomposition.

org.openrewrite.kotlin.performance.UseMutableLongStateOf$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.performance.UseMutableLongStateOf$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.