Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9496

ArrivalWindow should use primitives

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.16, 2.1.7, 2.2.0 rc2
    • None
    • None

    Description

      While doing a heap analysis of a large cluster(1000+), I found that majority of the strongly referenced objects on heap are coming from ArrivalWindow.
      Currently ArrivalWindow uses BoundedStatsDeque which uses LinkedBlockingDeque<Long> deque.
      For a cluster of size 1000, it will translate into 2 million objects.

      We can use primitives and use an array of long(long[]). This will cut down on the number of objects and the change is not that big.

      Attachments

        1. 9496.txt
          5 kB
          Sankalp Kohli

        Activity

          People

            kohlisankalp Sankalp Kohli
            kohlisankalp Sankalp Kohli
            Sankalp Kohli
            Jason Brown
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: