Skip to content

improve getLiveDocs() performance [LUCENE-3500] #4574

@asfimport

Description

@asfimport

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.


Migrated from LUCENE-3500 by Yonik Seeley (@yonik)
Attachments: LUCENE-3500.patch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions