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

    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

        1. COLLECTIONS-398-2.patch
          3 kB
          Sebb
        2. COLLECTIONS-398.patch
          3 kB
          Sebb

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: