zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Nixon (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-3252) Extend the options for the response cache
Date Fri, 18 Jan 2019 21:36:00 GMT
Brian Nixon created ZOOKEEPER-3252:
--------------------------------------

             Summary: Extend the options for the response cache
                 Key: ZOOKEEPER-3252
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3252
             Project: ZooKeeper
          Issue Type: Improvement
          Components: server
            Reporter: Brian Nixon


The response cache added in ZOOKEEPER-3180 is fairly bare bones. It does its job but there
is room for experimentation and improvement. From the issue pull request ([https://github.com/apache/zookeeper/pull/684):]
{quote}"the alternate eviction policies you outline and that LinkedHashMap allows. I see three
reasonable paths here,
{quote} * 
{quote}Merge this pr as it is (perhaps rename LRUCache to just Cache) and open a new JIRA
to explore future paths.{quote}
 * 
{quote}I add another property that lets one toggle between insertion order and access order
with the current implementation as the default.{quote}
 * 
{quote}Drop LinkedHashMap entirely and go with something like a guava Cache."{quote}

It was merged with path 1 chosen but I remain interested in the optimizations that were suggested.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message