[ 
https://issues.apache.org/jira/browse/LANG-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848663#comment-17848663
 ] 

Gary D. Gregory edited comment on LANG-1736 at 5/22/24 3:19 PM:
----------------------------------------------------------------

So... exactly like {{HashMap}} (and {{ConcurrentHashMap}}) which we comment in 
the code as following.


was (Author: garydgregory):
So... exactly like {{HashMap}} and {{ConcurrentHashMap}} which we comment in 
the code as following.

> Pair.hashCode() leads to a lot of hash collisions
> -------------------------------------------------
>
>                 Key: LANG-1736
>                 URL: https://issues.apache.org/jira/browse/LANG-1736
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.tuple.*
>    Affects Versions: 3.14.0
>            Reporter: TobiasKiecker
>            Priority: Trivial
>         Attachments: Main.java
>
>
> The implementation of Pair.hashCode() has hash collisions for most java 
> primitives with close values. This could affect the performance of maps with 
> pairs as keys.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to