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

Reduce Empty Map allocations in StorageProxy.sendToHintedEndpoints

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0 beta 1
    • None
    • None

    Description

      StorageProxy.sendToHintedEndpoints allocates HashMaps consistently that are very often not used.

      See output: http://pastebin.com/jEaBxz1h

      Format is
      Type Date SourceLine CollectionSize NumBuckets NumBucketsUsed

      The snapshot is taken after the size of the collection hasn't changed for 5 seconds.

      Postpone creation of hashmap until you need it.

      Attachments

        1. 5538.txt
          2 kB
          David Brosius
        2. 5538-2.txt
          6 kB
          Jonathan Ellis

        Activity

          People

            dbrosius David Brosius
            dbrosius David Brosius
            David Brosius
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: