groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <>
Subject Re: Performance of the compiler
Date Fri, 25 May 2018 11:52:45 GMT

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 

I think there would be no problem with Java10, but think of Java 11... 
we do not know yet.

bye Jochen

View raw message