lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <>
Subject [jira] Updated: (LUCENE-937) Make CachingTokenFilter faster
Date Fri, 22 Jun 2007 14:50:26 GMT


Mark Miller updated LUCENE-937:

    Attachment: CachingTokenFilterRev2.patch

I have the reset method check if the cache is null before creating a new Iterator because
it would not throw an exception before if you called reset before calling next. I don't know
how you feel about this.

> Make CachingTokenFilter faster
> ------------------------------
>                 Key: LUCENE-937
>                 URL:
>             Project: Lucene - Java
>          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 is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message