[CONTROLLER-667] Reflection-based calls: use MethodHandle instead of Method.invoke() Created: 06/Aug/14 Updated: 19/Oct/17 Resolved: 12/May/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| Description |
|
MethodHandle is Java 7's optimized API for dynamically invoking methods. It allows for completely eliminating overhead associated with boxing/unboxing of arguments. We rely on Method.invoke() in a few performance-critical places, so it makes sense to squeeze it a bit more. |
| Comments |
| Comment by Tony Tkacik [ 12/May/15 ] |
|
Binding MD-SAL uses java.lang.invoke as replacement |