Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-937

Make CachingTokenFilter faster

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • New, Patch Available

    Description

      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.

      Attachments

        1. CachingTokenFilter.patch
          0.7 kB
          Mark Miller
        2. CachingTokenFilterRev2.patch
          1 kB
          Mark Miller

        Issue Links

          Activity

            People

              Unassigned Unassigned
              markrmiller@gmail.com Mark Miller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: