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

Reuse TokenStream instances in Field

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.9, 6.0
    • None
    • None
    • New

    Description

      If you don't reuse your Doc/Field instances (which is very expert: I
      suspect few apps do) then there's a lot of garbage created to index each
      StringField because we make a new StringTokenStream or
      NumericTokenStream (and their Attributes).

      We should be able to re-use these instances via a static
      ThreadLocal...

      Attachments

        1. LUCENE-5634.patch
          2 kB
          Michael McCandless
        2. LUCENE-5634.patch
          3 kB
          Michael McCandless
        3. LUCENE-5634.patch
          7 kB
          Robert Muir
        4. LUCENE-5634.patch
          14 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            mikemccand Michael McCandless
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: