[ 
https://issues.apache.org/jira/browse/LUCENE-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251101#comment-14251101
 ] 

David Smiley commented on LUCENE-937:
-------------------------------------

In LUCENE-6033 I swapped LL for ArrayList purely for reduced memory usage 
(fewer objects).

> Make CachingTokenFilter faster
> ------------------------------
>
>                 Key: LUCENE-937
>                 URL: https://issues.apache.org/jira/browse/LUCENE-937
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Mark Miller
>            Priority: Minor
>         Attachments: CachingTokenFilter.patch, CachingTokenFilterRev2.patch
>
>
> The LinkedList used by CachingTokenFilter is accessed using the get() method. 
> Direct access on a LinkedList is slow and an Iterator should be used instead. 
> For more than a handful of tokens, the difference in speed grows 
> exponentially.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to