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

org.apache.lucene.util.fst.FST should skip over outputs it is not interested in

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.9, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Currently the FST uses the read(DataInput) method from the Outputs class to skip over outputs it actually is not interested in. For most use cases this just creates some additional objects that are immediately destroyed again.

      When traversing an FST with non-trivial data however this can easily add up to several excess objects that nobody actually ever read.

        Attachments

        1. skipOutput_lucene48.patch
          8 kB
          Christian Ziech
        2. LUCENE-5670.patch
          7 kB
          Christian Ziech

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              christianz Christian Ziech
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: