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

Reduce Empty Map allocations in RowMutation (modifications)

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment