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

Speedup CharArraySet if set is empty

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • modules/analysis
    • None
    • New

    Description

      CharArraySet#contains(...) always creates a HashCode of the String, Char[] or CharSequence even if the set is empty.
      contains should return false if set it empty

      Attachments

        1. LUCENE-2195.patch
          5 kB
          Robert Muir
        2. LUCENE-2195.patch
          5 kB
          Simon Willnauer
        3. LUCENE-2195.patch
          4 kB
          Simon Willnauer
        4. LUCENE-2195.patch
          4 kB
          Simon Willnauer

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment