RFR: 8281631: HashMap copy constructor and putAll can over-allocate table [v22]
liach
duke at openjdk.java.net
Mon Feb 21 06:35:49 UTC 2022
On Sun, 20 Feb 2022 20:30:29 GMT, XenoAmess <duke at openjdk.java.net> wrote:
>>> You should run benchmarks to see how bad the lookup performance degrades after you saves memory used by the hash table.
>>
>> OK, would find some time for it.
>
>> > You should run benchmarks to see how bad the lookup performance degrades after you saves memory used by the hash table.
>>
>> OK, would find some time for it.
>
> @liach which jmh test should I run by the way?
>
> Or is there some commandline tools for this?
>
> I found nothing related to IdentityHashMap under `test/micro`
Unfortunately I don't think there is any for now. Maybe someone familiar with the identity hash map can comment on your changes to the expected map size
-------------
PR: https://git.openjdk.java.net/jdk/pull/7431
More information about the core-libs-dev
mailing list