Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47FE7630C for ; Sat, 9 Jul 2011 01:19:47 +0000 (UTC) Received: (qmail 84876 invoked by uid 500); 9 Jul 2011 01:19:45 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 84819 invoked by uid 500); 9 Jul 2011 01:19:44 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 84811 invoked by uid 99); 9 Jul 2011 01:19:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jul 2011 01:19:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jason.rutherglen@gmail.com designates 209.85.220.169 as permitted sender) Received: from [209.85.220.169] (HELO mail-vx0-f169.google.com) (209.85.220.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jul 2011 01:19:37 +0000 Received: by vxg38 with SMTP id 38so2514256vxg.14 for ; Fri, 08 Jul 2011 18:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vf4JG/N0cNu+ay2B2QpD5OJWz5MtCJdQTkvOb1gduWk=; b=bY50Kz0x0Wy/KTCziyzYNT+Fzrmb/Qt9D1FgKCDwG+du1fz4d0m1pbGndd/CxhpMu5 RUg8a3I8Ki2D+5ZffOcURPWva8jmLKStSsbzyyHPyv7dcvVVkbyxIAFo+tNv28tTKtBL SzTXtIRlLBaaLs11KhxYgJmujVCUaN7wz91Do= MIME-Version: 1.0 Received: by 10.52.97.197 with SMTP id ec5mr3354292vdb.259.1310174356794; Fri, 08 Jul 2011 18:19:16 -0700 (PDT) Received: by 10.52.112.165 with HTTP; Fri, 8 Jul 2011 18:19:16 -0700 (PDT) In-Reply-To: References: Date: Fri, 8 Jul 2011 18:19:16 -0700 Message-ID: Subject: Re: Converting byte[] to ByteBuffer From: Jason Rutherglen To: dev@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 I don't think the object pointer overhead is very much given it's usually pointing at a full block? Perhaps we can implement a nicer class like Lucene's BytesRef [1]. Then we can have our own class that may wrap a byte[] or ByteBuffer. 1. http://lucene.apache.org/java/3_3_0/api/core/org/apache/lucene/util/BytesRef.html On Fri, Jul 8, 2011 at 5:34 PM, Ryan Rawson wrote: > Where? Everywhere? An array is 24 bytes, bb is 56 bytes. Also the API > is...annoying. > On Jul 8, 2011 4:51 PM, "Jason Rutherglen" > wrote: >> Is there an open issue for this? How hard will this be? :) >