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 B2689E39E for ; Mon, 3 Dec 2012 17:00:01 +0000 (UTC) Received: (qmail 11158 invoked by uid 500); 3 Dec 2012 17:00:01 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 10557 invoked by uid 500); 3 Dec 2012 17:00:00 -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 10026 invoked by uid 99); 3 Dec 2012 16:59:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 16:59:59 +0000 Date: Mon, 3 Dec 2012 16:59:59 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <526296485.53939.1354553999293.JavaMail.jiratomcat@arcas> In-Reply-To: <1226833887.53904.1354553279285.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CASSANDRA-5019) Still too much object allocation on reads MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-5019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508853#comment-13508853 ] Jonathan Ellis commented on CASSANDRA-5019: ------------------------------------------- A Flyweight pattern is one approach. Something like {code} class FlyweightColumns { ByteBuffer[] names; ByteBuffer[] values; long[] timestamps; private class FlyweightColumn implements IColumn { private final int index; public ByteBuffer name() { return names[index]; } ... } } > Still too much object allocation on reads > ----------------------------------------- > > Key: CASSANDRA-5019 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5019 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Jonathan Ellis > Fix For: 1.3 > > > ArrayBackedSortedColumns was a step in the right direction but it's still relatively heavyweight thanks to allocating individual Columns. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira