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

BooleanWeight should size the weights Vector correctly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.9, 2.0.0, 2.1
    • None
    • core/search
    • None
    • New, Patch Available

    Description

      The weights field on BooleanWeight uses a Vector that will always be sized exactly the same as the outer class' clauses Vector, therefore can be sized correctly in the constructor. This is a trivial memory saving enhancement.

      Attachments

        1. vector_sizing.patch
          0.7 kB
          paul constantinides
        2. LUCENE-711.patch
          0.8 kB
          Mark Miller

        Activity

          People

            otis Otis Gospodnetic
            pcc paul constantinides
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: