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

cache the hashcode of DecoratedKey as it is immutable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      cache the hashcode of the DecoratedKey on first hashCode() call. DecoratedKey is immutable so no need to run thru all ByteBuffer bytes of the key and do hashcode math.

      applied to trunk.

      Attachments

        1. cache_decoratedkey_hash.diff
          0.8 kB
          Dave Brosius

        Activity

          People

            Unassigned Unassigned
            dbrosius@apache.org Dave Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: