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

Improve ColumnDefinition comparison performance

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 3.0.0 rc1
    • Component/s: None
    • Labels:
      None

      Description

      We have already improved the performance here for the basic comparison, however since these happen exceedingly frequently we may as well go a little (easy step) further. This is a really tiny patch, and we should aim to include before GA, but not RC.

      Right now we use all of an int for the metadata presorting, but in fact we only need 2-3 bytes for this. We can upcast the int to a long, and use the remaining bits to store the prefix of the name. This way, a majority of comparisons become a single long comparison. Which will be considerably cheaper.

        Attachments

          Activity

            People

            • Assignee:
              benedict Benedict Elliott Smith
              Reporter:
              benedict Benedict Elliott Smith
              Authors:
              Benedict Elliott Smith
              Reviewers:
              Sylvain Lebresne
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: