Increase default concurrency level for NestedSetBuilder
This should reduce lock contention if there are a lot of threads trying
to access the map concurrently. The increase in memory is probably
negligible.
@@ -199,7 +199,7 @@ public final class NestedSetBuilder<E> {
}
private static final ConcurrentMap<ImmutableList<?>, NestedSet<?>> immutableListCache =
- new MapMaker().weakKeys().makeMap();
+ new MapMaker().concurrencyLevel(16).weakKeys().makeMap();
/**
* Creates a nested set from a given list of items.
