[
https://issues.apache.org/jira/browse/LUCENE-5861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley closed LUCENE-5861.
--------------------------------
Resolution: Duplicate
Fix Version/s: 5.0
> CachingTokenFilter should use ArrayList not LinkedList
> ------------------------------------------------------
>
> Key: LUCENE-5861
> URL: https://issues.apache.org/jira/browse/LUCENE-5861
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/analysis
> Reporter: David Smiley
> Assignee: David Smiley
> Priority: Minor
> Fix For: 5.0
>
>
> CachingTokenFilter, to my surprise, puts each new AttributeSource.State onto
> a LinkedList. I think it should be an ArrayList. On large fields that get
> analyzed, there can be a ton of State objects to cache.
> I also observe that State is itself a linked list of other State objects.
> Perhaps we could take this one step further and do parallel arrays of
> AttributeImpl, thereby bypassing State.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]