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

specialize payload processing from of DocsAndPositionsEnum

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • None
    • None
    • New, Patch Available

    Description

      In LUCENE-2760 i started working to try to improve the speed of a few spanqueries.
      In general the trick there is to avoid processing positions if you dont have to.

      But, we can improve queries that read lots of positions further by cleaning up SegmentDocsAndPositionsEnum,
      in nextPosition() this has no less than 3 payloads-related checks.

      however, a large majority of users/fields have no payloads at all.
      I think we should specialize this case into a separate implementation and speed up the common case.

      edit: dyslexia with the jira issue number.

      Attachments

        1. LUCENE-2761.patch
          14 kB
          Robert Muir
        2. LUCENE-2761.patch
          11 kB
          Robert Muir
        3. LUCENE-2761.patch
          11 kB
          Robert Muir

        Activity

          People

            rcmuir Robert Muir
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: