groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thibault Kruse <>
Subject Re: Performance of the compiler
Date Fri, 25 May 2018 12:24:48 GMT
Would the test performance be improved if @CompileStatic were used? I
think gradle uses Spock, and last time I checked Spock could not be
used with @CompileStatic. But Spock could also be removed with some

On Fri, May 25, 2018 at 8:52 PM, Jochen Theodorou <> wrote:
> Am 25.05.2018 um 12:51 schrieb Daniel.Sun:
>> Hi C├ędric,
>>       I am not going to cache ClassNode instance(just cache class names,
>> which are `String`), but I want to add a check whether the name of the
>> ClassNode being resolved is possibly in the default imported packages,
>> e.g.
>> If a ClassNode instance's name is `Foobar`(apparently it could not be in
>> any
>> default imported packages), then we can `return false` immediately and the
>> further resolving can be eliminated.
> but this means we will have to manually update the list for java.lang,
> java.util, and
> Take for example Module. It is new in Java 9 and is in java.lang. If we had
> this logic already in say Groovy 2.0 I am pretty sure the last versions till
> Groovy 2.3 would not be able to resolve this class anymore then.
> I think there would be no problem with Java10, but think of Java 11... we do
> not know yet.
> bye Jochen

View raw message