Skip to content

Reduce the number of classes extending DocIdSetIterator #14450

Open
@jpountz

Description

@jpountz

Megamorphism of call sites to DocIdSetIterator#nextDoc and DocIdSetIterator#advance hurts search performance. See e.g. annotation HJ at https://benchmarks.mikemccandless.com/OrHighHigh.html where reducing polymorphism helped improve QPS by 40%. More specialization could also help, but before we start going this route, we should reduce the number of classes that extend DocIdSetIterator so that specialization is less needed and can focus on some key impls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions