Broken version of trovy, it just eat memory.

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major
    • None
    • Affects Version/s: None

      In trove 3.0.3 we have that epic line of code:
      https://bitbucket.org/trove4j/trove/src/a4f8d76a0cfa9e72159268d38e9e8566f4614088/core/src/main/java/gnu/trove/impl/hash/TPrimitiveHash.java?at=master&fileviewer=file-view-default#TPrimitiveHash.java-97
      So if we create like new IntIntMap with size of 1000 and loadfactor of 0.1, instead of creating good optimized map for ~1k elements with two 1k arrays of ints for keys and values, we got two huge 10k int arrays.

      Fun fact: there is no fixed version in maven repo, but it is fixed in code.

      http://imgur.com/Oe2tXLQ

      Repo: http://mvnrepository.com/artifact/net.sf.trove4j/trove4j

            Assignee:
            Unassigned
            Reporter:
            GotoFinal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: