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

Precompute ColumnIdentifier comparison

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.0 alpha 1
    • None
    • None

    Description

      Follow up to CASSANDRA-9701. I had hoped to precompute a total order on the ColumnIdentifier, but decided this would be too risky, with the necessary periodic rebalancing. So instead, I've hoisted the first 8 bytes of any name into a long which we can compare to short-circuit all of the expensive work of ByteBufferUtil.compareUnsigned, making this another very trivial patch (of debatable necessity to be distinct, but I've already snuck one extra change in to the previous ticket).

      Attachments

        Activity

          People

            benedict Benedict Elliott Smith
            benedict Benedict Elliott Smith
            Benedict Elliott Smith
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: