You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a method to NonBlockingHashMap similar to the parallel forEach method in ConcurrentHashMap.
Background
In Bazel we currently use Guava's interners, but we are looking at other strategies for interning in order to reduce storage cost. Our estimate is that > 6% of Bazel's memory cost is from the interning data structures (not including the elements, just the storage).
We are interested in switching from ConcurrentHashMap to NonBlockingHashMap primarily for the getk() method, which would allow Bazel's main graph map to double as an interner for its keys, replacing Guava interners and the storage cost they entail. A parallel iteration method would close the gap vs our current usage of ConcurrentHashMap.
The text was updated successfully, but these errors were encountered:
Feature Request
Add a method to
NonBlockingHashMap
similar to the parallelforEach
method inConcurrentHashMap
.Background
In Bazel we currently use Guava's interners, but we are looking at other strategies for interning in order to reduce storage cost. Our estimate is that > 6% of Bazel's memory cost is from the interning data structures (not including the elements, just the storage).
We are interested in switching from
ConcurrentHashMap
toNonBlockingHashMap
primarily for thegetk()
method, which would allow Bazel's main graph map to double as an interner for its keys, replacing Guava interners and the storage cost they entail. A parallel iteration method would close the gap vs our current usage ofConcurrentHashMap
.The text was updated successfully, but these errors were encountered: