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

DelimitedPayloadTokenFilter copies the bufer over itsself. Instead it should only set the length. Also optimize logic.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 4.0-ALPHA
    • modules/analysis
    • None
    • New, Patch Available

    Description

      This is a small improvement I found when looking around. It is also a bad idea to copy a array over itsself.

      All tests pass, will commit later!

      Attachments

        1. LUCENE-2157.patch
          2 kB
          Uwe Schindler
        2. LUCENE-2157.patch
          4 kB
          Uwe Schindler
        3. LUCENE-2157.patch
          4 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            uschindler Uwe Schindler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: