@CompileStatic /@GrailsCompileStatic

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

@CompileStatic /@GrailsCompileStatic

clr meno
Will @CompileStatic /@GrailsCompileStatic improve performance? Is one preferred over the other?

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/08811888-6234-4470-8628-c30ef2f25db4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: @CompileStatic /@GrailsCompileStatic

Jeff Scott Brown-4
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/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/F68659B1-6C9D-4525-95C8-7EC8DE5CEF96%40objectcomputing.com.
For more options, visit https://groups.google.com/d/optout.