Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3063

Track outstanding changes with ArrayDeque

    XMLWordPrintableJSON

Details

    Description

      Outstanding changes are tracked with an ArrayList, which has O(N) remove from head (and possibly add) performance. This means that as we get further behind, we will slow down the processing of outstanding changes, which would make us get further behind.
      We should switch to using ArrayDeque which achieves O(1) add and remove on both ends, which should result in much happiness.

      Attachments

        Issue Links

          Activity

            People

              yisong-yue Yisong Yue
              yisong-yue Yisong Yue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m