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

Unify read/writeUTF code paths

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • Legacy/Core
    • None

    Description

      (Follow-up to CASSANDRA-9738 and CASSANDRA-8670)

      CASSANDRA-9738 requires writeUTF functionality that has been improved in CASSANDRA-8670 plus readUTF functionality. But we need slightly different signatures - one taking DataInput/DataOutput and one taking ByteBuffer.

      We can combine both code paths and benefit from a shared, thread-local byte buffer.

      Slightly different implementations are needed for array backed and direct BBs (as we can directly access the backing array bypassing the direct BB's boundary checks).

      (Part of this has already been done for CASSANDRA-9738 in OHCKeyCache.SerializationUtil)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              snazy Robert Stupp
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: