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

Optimize scanning in DocsEnum

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.9, 6.0
    • None
    • None
    • New

    Description

      Similar to LUCENE-2761:

      when we call advance(), after skipping it scans, but this can be optimized better than calling nextDoc() like today

            // scan for the rest:
            do {
              nextDoc();
            } while (target > doc);
      

      in particular, the freq can be "skipVinted" and the skipDocs (deletedDocs) don't need to be checked during this scanning.

      Attachments

        1. LUCENE-2765.patch
          11 kB
          Robert Muir
        2. LUCENE-2765.patch
          11 kB
          Robert Muir

        Activity

          People

            rcmuir Robert Muir
            rcmuir Robert Muir

            Dates

              Created:
              Updated:

              Slack

                Issue deployment