Loose-ends wrapup
Doug Lea
dl at cs.oswego.edu
Fri May 10 12:07:52 PDT 2013
On 05/10/13 14:53, Doug Lea wrote:
> On 05/10/13 14:09, Doug Lea wrote:
>> On 05/10/13 13:55, Kevin Bourrillion wrote:
>>> Hey Doug,
>>>
>>> Can you compare/contrast the API and behavior you have in mind with
>>> ConcurrentHashMultiset
>>> <http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/ConcurrentHashMultiset.html>?
>>>
>>>
>>>
>>>
>>
>> It only supports the methods defined in the Collection API.
>> It uses JDK8-CHM-based segmentless mechanics.
>> It is the most efficient class I know for unordered concurrent
>> aggregation.
>>
>
> Oh, and it does not allow add(null).
>
But after dusting off this code, I changed to do so with very little
cost, which removes the need for streams to figure out whether
it could use it. Probably the best move, even though I cringe about it.
-Doug
More information about the lambda-libs-spec-experts
mailing list