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

Refactor Cell and CellName ByteBuffer accessors to avoid garbage allocation where possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Won't Fix
    • 2.1 beta2
    • None
    • None

    Description

      This is a prerequisite for CASSANDRA-6694.

      The basic idea is to, if unsafe is available, abuse it to modify preallocated ByteBuffers so that when they are short lived they do not need to be instantiated. Initially this will only be helpful for comparisons and lookups on the BBs, but with some modifications to the read path we should be able to reduce the need in CASSANDRA-6694 to construct BBs to pass to the native protocol (thrift may have to continue as is)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              benedict Benedict Elliott Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: