Skip to content

Commit ee433a4

Browse files
authored
Merge pull request #15296 from jdaugherty/7.0.x
doc - #15293 - add warning about invokedynamic performance
2 parents 39347a3 + b184964 commit ee433a4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

grails-doc/src/en/guide/upgrading/upgrading60x.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ In your gradle file, you can force a dependency upgrade via this code:
6262
}
6363
----
6464

65+
5. By default, Groovy 4 switches away from callsite optimizations and uses invokedynamic instead. This can result in performance regressions compared to Grails 6. Groovy 5 will remove the ability to disable invokedynamic, but to disable it for Groovy 4, modify your `build.gradle` to include the following:
66+
67+
[source,groovy]
68+
.build.gradle
69+
----
70+
tasks.withType(GroovyCompile).configureEach {
71+
groovyOptions.optimizationOptions.indy = false
72+
}
73+
----
74+
6575
==== 3. Unified Project Version
6676

6777
Grails 7 moved to a mono repository.

0 commit comments

Comments
 (0)