RFR: 8331187: Optimize MethodTypeDesc and ClassDesc.ofDescriptor for primitive types [v2]

Jorn Vernee jvernee at openjdk.org
Fri Apr 26 12:04:32 UTC 2024


On Fri, 26 Apr 2024 11:49:19 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> > Does removing the explicit null checks make that much difference for performance? They are kind of nice for clarity.
> 
> It helps startup at least. The redundant array depth check mattered a bit for peak performance, but not much. I don't have a strong opinion really, just find them a bit superfluous when there's a dereference on the next line.

Sure, I'm mostly talking about cases where the value is passed to another method.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18971#issuecomment-2079249354


More information about the core-libs-dev mailing list