groovy-2

Groovy @CompileStatic and Grails

放肆的年华 提交于 2020-01-07 02:36:15
问题 Looking at article on DZone about improved performance with Groovy2 when compiling with @CompileStatic annotation, I wonder to what extent can I take advantage of it? I'm guessing annotate controllers, domain objects and services? Does Grails take advantage of it by default when app gets compiled? Link to article. 回答1: Current Grails version (2.1) run groovy 1.8.x In Grails web you can see the roadmap, where Groovy 2.x integration is featured http://grails.org/Roadmap 回答2: As of December 20th

Should I use Groovy's @CompileStatic if I'm also using Java 7

元气小坏坏 提交于 2020-01-01 07:56:11
问题 I've read through the "What's new in Groovy 2.0" and I'm a bit confused about when to use @CompileStatic. The article mentions that the @CompileStatic annotation was added for developers who weren't able to take advantage of the invoke dynamic part of Java7. So developers looking for performance improvements would not see much changes in Groovy 2.0, if they aren’t able to run on JDK 7. Luckily, the Groovy development team thought those developers could get interesting performance boost, among

Should I use Groovy's @CompileStatic if I'm also using Java 7

我们两清 提交于 2019-12-04 01:34:07
I've read through the "What's new in Groovy 2.0" and I'm a bit confused about when to use @CompileStatic. The article mentions that the @CompileStatic annotation was added for developers who weren't able to take advantage of the invoke dynamic part of Java7. So developers looking for performance improvements would not see much changes in Groovy 2.0, if they aren’t able to run on JDK 7. Luckily, the Groovy development team thought those developers could get interesting performance boost, among other advantages, by allowing type checked code to be compiled statically. My question is, if I'm