Chain filterArguments, or use identity()?
Attila Szegedi
szegedia at gmail.com
Sun Feb 6 10:40:38 PST 2011
Hi folks,
suppose I want to filter several disjunct ranges of arguments on a method handle. I noticed that filterArguments() no longer tolerates null elements in the filter array. This leaves me with two implementation strategies:
1. several chained filterArguments invocations, each specifying a continuous range of filters, or
2. replacing null elements in the filter array with appropriate MethodHandle.identity() elements.
Which one is the advised approach (meaning, it will end up performing better)?
Thanks,
Attila.
More information about the mlvm-dev
mailing list