RFR: 8338546: Speed up ConstantPoolBuilder::classEntry(ClassDesc)

Chen Liang liach at openjdk.org
Thu Aug 22 05:19:05 UTC 2024


On Wed, 21 Aug 2024 22:27:02 GMT, Chen Liang <liach at openjdk.org> wrote:

> Speed up `ConstantPoolBuilder::classEntry(ClassDesc)` by going through `ClassDesc` comparison and reusing descriptor hash to calculate internal name hash if possible. No suitable device to run benchmarks so need to find something to run the new benchmark to ensure things work as intended.

Ran the benchmarks with `-Xint` and this patch still sees a 50% increase in throughput from the baseline version; but it is a bit far from direct internal name usage.

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

PR Comment: https://git.openjdk.org/jdk/pull/20667#issuecomment-2303803328


More information about the core-libs-dev mailing list