groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <sun...@apache.org>
Subject Re: About supporting native method reference and constructor reference
Date Sat, 23 Feb 2019 16:59:06 GMT
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

Mime
View raw message