Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-398

BoundedFifoBuffer could be simplified by keeping a count of the number of entries

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

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      BoundedFifoBuffer could be much simplified by keeping a count of the number of entries, and dropping the boolean full.

      This would speed up size() and isEmpty() and isFull().

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment