[ 
https://issues.apache.org/jira/browse/CASSANDRA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725438#action_12725438
 ] 

Jonathan Ellis commented on CASSANDRA-259:
------------------------------------------

LinkedHashMap is a nonstarter though.  This was used in the old code but it's 
not threadsafe and if you wrap in the naive Collections.synchronizedMap 
performance will suffer since every read (from potentially lots of threads) has 
to go through that.

Going to use the one from http://code.google.com/p/concurrentlinkedhashmap/.  
The race condition mentioned on the front page is fixed in trunk.

> LRU cache for key positions
> ---------------------------
>
>                 Key: CASSANDRA-259
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-259
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>
> add cache like the old touch cache, but working :)
> this will mitigate the performance hit from CASSANDRA-223

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to