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

Small performance enhancement for StandardAnalyzer

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      The class StandardAnalyzer has an inner class, SavedStreams, which is used internally for maintaining some state. This class doesn't use the implicit reference to the enclosing class, so it can be made static and reduce some memory requirements. A patch will be attached shortly.

        Activity

        Hide
        nbeyer Nathan Beyer added a comment -

        The patch to make the SavedStreams inner class static and final. I also remove the superfluous ';' at the end of the inner class.

        Show
        nbeyer Nathan Beyer added a comment - The patch to make the SavedStreams inner class static and final. I also remove the superfluous ';' at the end of the inner class.
        Hide
        michaelbusch Michael Busch added a comment -

        Committed. Thanks Nathan!

        Show
        michaelbusch Michael Busch added a comment - Committed. Thanks Nathan!

          People

          • Assignee:
            Unassigned
            Reporter:
            nbeyer Nathan Beyer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development