On Tue, 7 Feb 2023 11:48:52 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
>> Yes, performance is the main reason. >> I'll note to do a fresh differential performance benchmarks with a HashMap. > > thanks I tried HashMap with String keys and it cause performance regressions, however with Utf8Entry initialized with raw Attribute name as the HashMap key - there are no performance regressions. I'm going to push a patch removing all the manually computed HASH_ values and fragile inlined HashMap implementation. ------------- PR: https://git.openjdk.org/jdk/pull/10982