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

Reduce Empty Map allocations in RowMutation (modifications)

    XMLWordPrintableJSON

Details

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

    Description

      The constructor

      public RowMutation(String table, ByteBuffer key)

      was generation tons of empty HashMaps that were unused, on the order of 160,000 of them in about a minute.

      delay creating the map until you need it.

      Attachments

        1. 5541.txt
          8 kB
          David Brosius
        2. 5541-v2.txt
          2 kB
          Jonathan Ellis

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: