You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "TobiasKiecker (Jira)" <ji...@apache.org> on 2024/05/22 12:16:00 UTC

[jira] [Created] (LANG-1736) Pair.hashCode() leads to a lot of hash collisions

TobiasKiecker created LANG-1736:
-----------------------------------

             Summary: 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
         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)