On 31 Mar 2017, at 16:18, clr meno wrote:
> 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.
JSB
--
Jeff Scott Brown
OCI Grails Practice Lead
Principal Software Engineer
Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/