groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Champeau <cedric.champ...@gmail.com>
Subject Re: Performance of the compiler
Date Fri, 25 May 2018 11:10:29 GMT
FWIW, I tried with compileOptions.optimizationOptions.put("asmResolving",
true)

and it doesn't improve much the situation. Sometimes it's even slower. I
didn't investigate why.

Le ven. 25 mai 2018 à 12:51, Daniel.Sun <sunlan@apache.org> a écrit :

> 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.
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
>

Mime
View raw message