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

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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.patch
          3 kB
          Sebb
        2. COLLECTIONS-398-2.patch
          3 kB
          Sebb

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: