Re: RFR: 8304928: Optimize ClassDesc.resolveConstantDesc [v2]

2023-03-30 Thread Mandy Chung
On Fri, 31 Mar 2023 02:27:05 GMT, Chen Liang wrote: >> This patch optimizes ClassDesc.resolveConstantDesc for array classes. >> Otherwise, the performance of reference class resolution remain unchanged. >> >> A benchmark comparing resolution for reference arrays, primitive arrays, and >> class

Re: RFR: 8304928: Optimize ClassDesc.resolveConstantDesc

2023-03-30 Thread Mandy Chung
On Fri, 31 Mar 2023 02:22:55 GMT, Chen Liang wrote: > The `isPrimitiveArray` check is converted to a private method in > `ReferenceClassDesc` as it applies only to reference type descriptor strings. > Also included the rationale for not checking initial `[` in a comment. This would work.

Re: RFR: 8304928: Optimize ClassDesc.resolveConstantDesc [v2]

2023-03-30 Thread Chen Liang
On Fri, 31 Mar 2023 02:27:05 GMT, Chen Liang wrote: >> This patch optimizes ClassDesc.resolveConstantDesc for array classes. >> Otherwise, the performance of reference class resolution remain unchanged. >> >> A benchmark comparing resolution for reference arrays, primitive arrays, and >> class

Re: RFR: 8304928: Optimize ClassDesc.resolveConstantDesc

2023-03-30 Thread Chen Liang
On Thu, 30 Mar 2023 20:06:02 GMT, Chen Liang wrote: > This patch optimizes ClassDesc.resolveConstantDesc for array classes. > Otherwise, the performance of reference class resolution remain unchanged. > > A benchmark comparing resolution for reference arrays, primitive arrays, and > class or i

Re: RFR: 8304928: Optimize ClassDesc.resolveConstantDesc [v2]

2023-03-30 Thread Chen Liang
> This patch optimizes ClassDesc.resolveConstantDesc for array classes. > Otherwise, the performance of reference class resolution remain unchanged. > > A benchmark comparing resolution for reference arrays, primitive arrays, and > class or interfaces is included in this patch, and the result co

Re: RFR: 8304928: Optimize ClassDesc.resolveConstantDesc

2023-03-30 Thread Chen Liang
On Thu, 30 Mar 2023 23:13:51 GMT, Mandy Chung wrote: >> This patch optimizes ClassDesc.resolveConstantDesc for array classes. >> Otherwise, the performance of reference class resolution remain unchanged. >> https://jmh.morethan.io/?gist=111095eecf7a735fe8c96e4b952b58c1 It also >> includes a be

Re: RFR: 8304928: Optimize ClassDesc.resolveConstantDesc

2023-03-30 Thread Mandy Chung
On Thu, 30 Mar 2023 20:06:02 GMT, Chen Liang wrote: > This patch optimizes ClassDesc.resolveConstantDesc for array classes. > Otherwise, the performance of reference class resolution remain unchanged. > https://jmh.morethan.io/?gist=111095eecf7a735fe8c96e4b952b58c1 It also > includes a benchma

RFR: 8304928: Optimize ClassDesc.resolveConstantDesc

2023-03-30 Thread Chen Liang
This patch optimizes ClassDesc.resolveConstantDesc for array classes. Otherwise, the performance of reference class resolution remain unchanged. https://jmh.morethan.io/?gist=111095eecf7a735fe8c96e4b952b58c1 It also includes a benchmark for MethodTypeDesc resolution, which currently does not yet