Hi Jeff,
Indeed, there is no gradual "deallocation" for container types. This
was intentional as most of our use cases would allocate additional
keys anyway, even if some were temporarily removed.
I see two solutions.
1. .clear() method indeed doesn't release underlying storage (for the
same reason mentioned above), but .release() method does:
http://carrotsearch.github.io/hppc/releases/0.7.1/api/com/carrotsearch/hppc/IntHashSet.html#release--
2. Other primitive collection libraries are less conservative and do
have shrinking strategies. I believe fastutil and Koloboke do, for
example.
3. A patch to HPPC to implement shrinking on remove() would be most welcome :)
Dawid
> --
> You received this message because you are subscribed to the Google Groups
> "High Performance Primitive Collections for Java" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
>
java-high-performance-primi...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.