On Thu, Jan 15, 2009 at 8:35 PM, Mark H. <mark.hoem...@gmail.com> wrote:
>
> Welcome to the group! :-)
>
> On Jan 15, 1:38 am, stuhood <stuh...@gmail.com> wrote:
>> The benchmark contains 4 bi-directional dictionary implementations:
>>  * MDict - Java implementation using the synchronized keyword,
>>  * RWDict - Java implementation using a ReadWriteLock,
>>  * CLJDict - Clojure implementation using the (locking x) macro on
>> Java HashMaps,
>>  * STMDict - Clojure implementation using two refs on maps.
>
> Doesn't Java already have a more optimized thread-safe hash table that
> works by locking individual buckets, rather than the whole table?
> Maybe I'm just confused ;-P

It does: 
http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentHashMap.html

Alternative implementations of concurrency-aware HashMaps also exists
out on the 'nets (NBHashMap by Cliff Click and FashHashMap in
Javolution).

>
> mfh
> >
>



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to