Find MessageDigest.getInstance calls inside loops

Proprietary

MessageDigest.getInstance("MD5") walks the security-provider list on every call. Hoist the digest to a per-thread cache or reset it per use.

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