On Wed, 6 Apr 2022 16:02:31 GMT, XenoAmess <d...@openjdk.java.net> wrote:

>> 8186958: Need method to create pre-sized HashMap
>
> XenoAmess has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   use (double) DEFAULT_LOAD_FACTOR instead of 0.75

Quick question: If the maps are intended to be fixed-size, can't the users just 
call `new HashMap<>(size, 1)`, increasing the growth factor to prevent growth?

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

PR: https://git.openjdk.java.net/jdk/pull/7928

Reply via email to