> Will @CompileStatic /@GrailsCompileStatic improve performance? Is one
> preferred over the other?
Yes, they both improve performance.
Prefer @GrailsCompileStatic. For most code they behave exactly the
same. The difference is that we associate some type checking extensions
with @GrailsCompileStatic that are familiar with Grails idioms like
dynamic finders, constraints DSL, etc. to allow static type checking and
static compilation in places where @CompileStatic would not work because
the default type checker can’t verify those things.
Jeff Scott Brown
OCI Grails Practice Lead
Principal Software Engineer