Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 8390 invoked from network); 21 Jan 2011 20:28:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2011 20:28:11 -0000 Received: (qmail 97399 invoked by uid 500); 21 Jan 2011 20:28:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 97080 invoked by uid 500); 21 Jan 2011 20:28:11 -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 97069 invoked by uid 99); 21 Jan 2011 20:28:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 20:28:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 20:28:09 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0LKRlr9018759 for ; Fri, 21 Jan 2011 20:27:47 GMT Message-ID: <30174784.114911295641667630.JavaMail.jira@thor> Date: Fri, 21 Jan 2011 15:27:47 -0500 (EST) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Updated: (CASSANDRA-1255) Explore interning keys and column names 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-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-1255: -------------------------------------- Attachment: (was: 1255-v2.txt) > Explore interning keys and column names > --------------------------------------- > > Key: CASSANDRA-1255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1255 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Stu Hood > Assignee: Jonathan Ellis > Priority: Minor > Fix For: 0.7.1 > > Attachments: 1255.txt > > Original Estimate: 8h > Remaining Estimate: 8h > > With multiple Memtables, key caches and row caches holding DecoratedKey references, it could potentially be a huge memory savings (and relief to GC) to intern DecoratedKeys. Taking the idea farther, for the skinny row pattern, and for certain types of wide row patterns, interning of column names could be very beneficial as well (although we would need to wrap the byte[]s in something for hashCode/equals). > This ticket should explore the benefits and overhead of interning. > Google collections/guava MapMaker is a very convenient way to create this type of cache: example call: http://stackoverflow.com/questions/2865026/use-permgen-space-or-roll-my-own-intern-method/2865083#2865083 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.