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

Jonathan Ellis commented on CASSANDRA-423:
------------------------------------------

new ConcurrentLRUCache(size, size-1);

this is not the way to use CLRUCache judging from the source.  (lower should 
not be upper-1 except for really really small sizes.)

wth is up with CLRUC.setAlive?

CLRUC.get goes through several atomicints.  you're not going to get very good 
concurrency that way.

not very impressed with CLRUC, although on the plus side it is pretty simple.

> add new LRU cache
> -----------------
>
>                 Key: CASSANDRA-423
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-423
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Jonathan Ellis
>             Fix For: 0.5
>
>         Attachments: 
> 0001-CASSANDRA-423-Committed-first-version-using-Solr-s-C.patch, 
> 0002-CASSANDRA-423-Committed-first-version-using-Solr-s-C.patch, 
> 423-v0.patch, apache-solr-solrj-2009-09-04_08-06-33.jar, 
> lucene-core-2.9.0-rc2.jar
>
>


-- 
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