RFR: 8264288: Performance issue with MethodHandle.asCollector [v2]
jvernee at openjdk.java.net
Mon Apr 5 11:57:08 UTC 2021
On Fri, 2 Apr 2021 15:12:04 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
>> That's what I thought as well (but not 100% sure). I can partially roll back the last commit so the code still uses an injected array constructor handle, and then it should be easy to add caching in the cases where the component type is a reference type.
> Whatever you prefer. I'm fine with it either way.
I found it easier to add sharing now, since it makes the intrinsic redundant (and it can be removed again).
More information about the core-libs-dev