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

Make MemoryIndex more memory efficient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0, 4.1, 6.0
    • 4.1, 6.0
    • modules/other
    • None
    • 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
          99 kB
          Simon Willnauer
        2. LUCENE-4515.patch
          98 kB
          Simon Willnauer
        3. LUCENE-4515.patch
          87 kB
          Simon Willnauer
        4. LUCENE-4515.patch
          63 kB
          Simon Willnauer

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: