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 026C4E8B1 for ; Fri, 21 Dec 2012 00:47:13 +0000 (UTC) Received: (qmail 32463 invoked by uid 500); 21 Dec 2012 00:47:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 32436 invoked by uid 500); 21 Dec 2012 00:47: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 32427 invoked by uid 99); 21 Dec 2012 00:47:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2012 00:47:12 +0000 Date: Fri, 21 Dec 2012 00:47:12 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (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 edited comment on CASSANDRA-5019 at 12/21/12 12:45 AM: ---------------------------------------------------------------------- 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]; } ... } } {code} was (Author: jbellis): 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: 2.0 > > > 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