Daniel Sun created GROOVY-10207:
-----------------------------------
Summary: Improve the performance of method invocation with
LambdaMetaFactory
Key: GROOVY-10207
URL: https://issues.apache.org/jira/browse/GROOVY-10207
Project: Groovy
Issue Type: Improvement
Reporter: Daniel Sun
Fix For: 4.x
*Rationale*
1. Generate funtional interface at runtime
2. Create callsite with {{LambdaMetafactory.metafactory}} at runtime
3. Invoke method with callsite
*Tweak {{CachedMethod}} via the above way*
[https://github.com/apache/groovy/blob/master/src/main/java/org/codehaus/groovy/reflection/CachedMethod.java]
*Reference*
[https://www.optaplanner.org/blog/2018/01/09/JavaReflectionButMuchFaster.html]
[https://dzone.com/articles/think-twice-before-using-reflection]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)