Find SimpleDateFormat allocations inside loops
ProprietarySimpleDateFormat parses its pattern string in the constructor and is not thread-safe — allocating one per iteration is a common per-row hot spot. Hoist it out of the loop or use a thread-local cache (or migrate to DateTimeFormatter).
org. openrewrite. kotlin. performance. FindSimpleDateFormatInLoops$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. performance. FindSimpleDateFormatInLoops$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.