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

improve getLiveDocs() performance

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      On segmentReader, liveDocs is volatile because they used to be loaded on demand.
      This no longer appears to be the case... liveDocs are always loaded up front.
      This also means that getLiveDocs() can never fail (even after close), and we can remove the ensureOpen call.
      Minor optimizations, but volatile reads still do prevent optimizations across that boundary.

      Attachments

        1. LUCENE-3500.patch
          0.9 kB
          Yonik Seeley

        Activity

          People

            Unassigned Unassigned
            yseeley@gmail.com Yonik Seeley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: