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

remove linefiledocs usage from basetokenstreamtestcase

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.5
    • general/test
    • None
    • New

    Description

      LineFileDocs is slow, even to open. That's because it (very slowly) "skips" to a pseudorandom position into a 5MB gzip stream when you open it.

      There was a time when we didn't have a nice string generator for tests (TestUtil.randomAnalysisString), but now we do. And when it was introduced it found interesting new things that linefiledocs never found.

      This speeds up all the analyzer tests.

      Attachments

        1. LUCENE-9186.patch
          4 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: