Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 65999 invoked from network); 23 Oct 2005 14:50:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Oct 2005 14:50:50 -0000 Received: (qmail 36728 invoked by uid 500); 23 Oct 2005 14:50:45 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 36661 invoked by uid 500); 23 Oct 2005 14:50:44 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 36650 invoked by uid 99); 23 Oct 2005 14:50:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2005 07:50:44 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.27.42.29] (HELO smtp3-g19.free.fr) (212.27.42.29) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2005 07:50:42 -0700 Received: from [192.168.0.1] (gou06-1-82-224-99-120.fbx.proxad.net [82.224.99.120]) by smtp3-g19.free.fr (Postfix) with ESMTP id 9FF5D37510 for ; Sun, 23 Oct 2005 16:50:22 +0200 (CEST) Message-ID: <435BA32F.2010309@apache.org> Date: Sun, 23 Oct 2005 16:50:23 +0200 From: Remy Maucherat User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Sandbox ? References: <96e4b5230510182233y6de73261o15c890ec39e70db3@mail.gmail.com> <002001c5d4ff$2d5ce9a0$0301a8c0@medt01> <96e4b5230510201011l2d8263b0h39d3b3b0530f0f3d@mail.gmail.com> <4359081E.6050208@apache.org> <96e4b5230510210938j43272141mc49825ace1f57035@mail.gmail.com> In-Reply-To: <96e4b5230510210938j43272141mc49825ace1f57035@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Costin Manolache wrote: >>And CharBuffer, I hope. So you'll be extending (ByteChunk extends >>ByteBuffer) ? > > CharBuffer would go to MessageBytes. > > I'm thinking more as an 'uses' - you create ByteBuffers ( maybe direct > buffers ), and > you set it in the ByteChunk. "Extend" is not the best choice - it > would be hard to work with direct ( or other ) buffers. I'm actually > thinking about adding some static methods as well for all the utils we > have in BB. I didn't do any tests, but accessing direct buffers contents seems vastly more expensive. I don't see how they could be used other than for: - buffering (as done in the APR connectors) - transferring bytes without manipulating them in Java (ex: sending a file on a socket) Did you do some microbenchmarks ? R�my --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org