Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7932699FC for ; Sat, 14 Apr 2012 04:16:16 +0000 (UTC) Received: (qmail 99490 invoked by uid 500); 14 Apr 2012 04:16:16 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 99363 invoked by uid 500); 14 Apr 2012 04:16:12 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 99326 invoked by uid 99); 14 Apr 2012 04:16:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Apr 2012 04:16:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Apr 2012 04:16:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A63B436A64C for ; Sat, 14 Apr 2012 04:15:49 +0000 (UTC) Date: Sat, 14 Apr 2012 04:15:49 +0000 (UTC) From: "Dave Brosius (Updated) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1306319030.25139.1334376949989.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1870609237.25138.1334376947849.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-4152) cache the hashcode of DecoratedKey as it is immutable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-4152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dave Brosius updated CASSANDRA-4152: ------------------------------------ Attachment: cache_decoratedkey_hash.diff > cache the hashcode of DecoratedKey as it is immutable > ----------------------------------------------------- > > Key: CASSANDRA-4152 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4152 > 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira