Native method reference and constructor reference will have much better
performance than method closure, which is a bit heavy and has to be coerced
to functional interface though generating proxy instance.

BTW, current implementation of native method reference and constructor
reference is almost same with Java's method reference and constructor
reference, i.e. almost same bytecode. so native method reference and
constructor reference will be more efficient than native lambda expression,
which is a bit versatile to mimic closure's behaviors.

Cheers,
Daniel.Sun



-----
Apache Groovy committer 
Blog: http://blog.sunlan.me 
Twitter: @daniel_sun 

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Reply via email to