paulk-asert opened a new pull request, #2710:
URL: https://github.com/apache/groovy/pull/2710

   A closure with a typed parameter generates call(T)/doCall(T) rather than 
call(Object), which the GROOVY-11911 CallOverride lookup cannot see, so every 
such call fell back to full metaclass dispatch (~2.5x slower via DGM 
iteration). Cache the single unambiguous typed one-arg override with an 
instance-of guard (boxed for primitives): exact-instance arguments dispatch 
directly; anything needing Groovy coercion (GString->String, number 
conversions, null) still falls through to the metaclass, which behaves exactly 
as before. Untyped closures are unaffected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to