You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2014/12/17 11:56:13 UTC
[jira] [Updated] (LUCENE-6118) Improve efficiency of the history
structure for filter caching
[ https://issues.apache.org/jira/browse/LUCENE-6118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand updated LUCENE-6118:
---------------------------------
Attachment: LUCENE-6118.patch
Here is a patch. No more java.lang.Integers and 22 bytes per entry on average (4 for the ring buffer and 18 for the bag that tracks frequencies).
> Improve efficiency of the history structure for filter caching
> --------------------------------------------------------------
>
> Key: LUCENE-6118
> URL: https://issues.apache.org/jira/browse/LUCENE-6118
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Adrien Grand
> Assignee: Adrien Grand
> Priority: Minor
> Attachments: LUCENE-6118.patch
>
>
> The filter caching uses a ring buffer that tracks frequencies of the hashcodes of the most-recently used filters. However it is based on an ArrayDeque<Integer> and a HashMap<Integer> which keep on (un)wrapping ints. Since the data-structure is very simple, we could try to do something better...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org