You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2022/04/19 07:37:00 UTC

[jira] [Resolved] (SANTUARIO-586) sync JDK-8186958: better calculations for HashMap constructor parameter calculation

     [ https://issues.apache.org/jira/browse/SANTUARIO-586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved SANTUARIO-586.
-------------------------------------------
    Resolution: Fixed

> sync JDK-8186958: better calculations for HashMap constructor parameter calculation
> -----------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-586
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-586
>             Project: Santuario
>          Issue Type: Improvement
>          Components: Java
>            Reporter: Jin Xu
>            Assignee: Colm O hEigeartaigh
>            Priority: Minor
>             Fix For: Java 2.2.4, Java 2.3.1, Java 3.0.0
>
>
> https://github.com/apache/santuario-xml-security-java/pull/64
> In short, HashMap's int constructor accept capacity, but not size, which means if we wanna not make it resize, it is better to give it capacity calculated using size and default load factor 0.75
> See also
> https://github.com/openjdk/jdk/pull/7928



--
This message was sent by Atlassian Jira
(v8.20.1#820001)