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 <sun...@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 >