kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sophie Blee-Goldman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-8094) Iterating over cache with get(key) is inefficient
Date Mon, 11 Mar 2019 21:52:00 GMT
Sophie Blee-Goldman created KAFKA-8094:
------------------------------------------

             Summary: Iterating over cache with get(key) is inefficient 
                 Key: KAFKA-8094
                 URL: https://issues.apache.org/jira/browse/KAFKA-8094
             Project: Kafka
          Issue Type: Improvement
            Reporter: Sophie Blee-Goldman


Currently, range queries in the caching layer are implemented by creating an iterator over
the subset of keys in the range, and calling get() on the underlying TreeMap for each key.
While this protects against ConcurrentModificationException, we can improve performance by
replacing the TreeMap with a concurrent data structure such as ConcurrentSkipListMap and then
just iterating over a subMap.



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

Mime
View raw message