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

Make MemoryIndex more memory efficient

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0, 4.1, 6.0
    • Fix Version/s: 4.1, 6.0
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      Currently MemoryIndex uses BytesRef objects to represent terms and holds an int[] per term per field to represent postings. For highlighting this creates a ton of objects for each search that 1. need to be GCed and 2. can't be reused.

        Attachments

        1. LUCENE-4515.patch
          63 kB
          Simon Willnauer
        2. LUCENE-4515.patch
          87 kB
          Simon Willnauer
        3. LUCENE-4515.patch
          98 kB
          Simon Willnauer
        4. LUCENE-4515.patch
          99 kB
          Simon Willnauer

          Issue Links

            Activity

              People

              • Assignee:
                simonw Simon Willnauer
                Reporter:
                simonw Simon Willnauer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: