RFR: 8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the Classfile API to generate proxy classes [v3]
Adam Sotona
asotona at openjdk.org
Mon Jan 8 15:34:23 UTC 2024
On Fri, 5 Jan 2024 23:55:53 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> > Profiling of the benchmarks revealed several slowdowns:
> > ```
> > * many expensive conversions from `Class<?>` to `ClassDesc` to `ClassEntry`, or even more expensive `MethodTypeDesc`
> >
> > * building proxy class from scratch from symbols also involves a lot of `String` concatenations, hashing, encoding and comparisons
> >
> > * computation of stack maps is also still expensive
> >
> > * `SplitConstantPool` was ineffective in some specific cases
> > ```
>
> Do you think these also cause the performance overhead in converting java.lang.invoke to use ClassFile API (#17108)?
Yes, I think it affects all performance critical applications.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17121#issuecomment-1881235421
More information about the core-libs-dev
mailing list