RFR: 8331187: Optimize MethodTypeDesc and ClassDesc.ofDescriptor for primitive types [v3]
Claes Redestad
redestad at openjdk.org
Fri Apr 26 13:40:24 UTC 2024
On Fri, 26 Apr 2024 12:43:32 GMT, Chen Liang <liach at openjdk.org> wrote:
> Primitive class desc sharing should be really helpful, especially considering that they are represented as condy and their `equals` is thus quite inefficient.
Ok. We could consider overriding `equals` in `PrimitiveClassDescImpl` if this is an issue (in a follow-up). With guarantees that they are unique we could even have such a method be implemented as a reference equality check.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18971#issuecomment-2079415480
More information about the core-libs-dev
mailing list