cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (Commented) (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-4152) cache the hashcode of DecoratedKey as it is immutable
Date Mon, 16 Apr 2012 20:36:18 GMT


Jonathan Ellis commented on CASSANDRA-4152:

Agreed that it's not obvious this is a good trade to make.  We use DK all over the place,
so expanding its memory footprint makes me cautious.  Also, a lot of the collections it's
used in rely on comparator instead of hash.
> cache the hashcode of DecoratedKey as it is immutable
> -----------------------------------------------------
>                 Key: CASSANDRA-4152
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Dave Brosius
>            Priority: Trivial
>         Attachments: cache_decoratedkey_hash.diff
> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message