Find BigInteger("...") allocations inside loops

Proprietary

Parsing a BigInteger from a String literal inside a loop reparses the same value every iteration. Hoist the literal BigInteger to a top-level property or BigInteger.valueOf constant.

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