David Smiley created LUCENE-5861:
------------------------------------
Summary: 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
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.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]