Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 73377 invoked from network); 25 Feb 2006 09:11:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Feb 2006 09:11:19 -0000 Received: (qmail 42237 invoked by uid 500); 25 Feb 2006 09:11:18 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 41933 invoked by uid 500); 25 Feb 2006 09:11:16 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 41913 invoked by uid 99); 25 Feb 2006 09:11:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2006 01:11:16 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of trustin@gmail.com designates 64.233.182.200 as permitted sender) Received: from [64.233.182.200] (HELO nproxy.gmail.com) (64.233.182.200) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2006 01:11:15 -0800 Received: by nproxy.gmail.com with SMTP id x37so408533nfc for ; Sat, 25 Feb 2006 01:10:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=L36+lJoh9zbKjRhZyfKPEIqhbdOdlTHXTASHiS7h/2jjUYSVkbYqXxK8zoQ8fh25037LH8blW5R2j/ERXTgyRroO6gRRgPdnigxEIGYb0gy7kheQatnN1A68Zc8iu+ZKGt7YD1hHr3eR5s8aNUP7+WRS5o/SqgiG3+Xaj9vG4wg= Received: by 10.49.8.13 with SMTP id l13mr2793290nfi; Sat, 25 Feb 2006 01:10:54 -0800 (PST) Received: by 10.49.64.13 with HTTP; Sat, 25 Feb 2006 01:10:54 -0800 (PST) Message-ID: <768dcb2e0602250110i304d6990kd4eec16f138d97cf@mail.gmail.com> Date: Sat, 25 Feb 2006 18:10:54 +0900 From: "Trustin Lee" To: mina-dev@directory.apache.org Subject: Re: [mina] DIRMINA-165 revisited Cc: "joshua portway" , "Apache Directory Developers List" In-Reply-To: <5FB63612-B3F9-41DD-9AD9-EB0D9DF6482A@stain.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24722_14117374.1140858654137" References: <510E6791-0FD2-49CB-9736-39261BBB367C@stain.org> <000e01c6326b$38d91c80$0300a8c0@fedechiccowinxp> <5FB63612-B3F9-41DD-9AD9-EB0D9DF6482A@stain.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_24722_14117374.1140858654137 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 2/16/06, joshua portway wrote: > > thanks for the warning - is anyone actively working on this issue ? Not yet unfortunately. Any contribution is welcome. ;) It's important to my project to be able to slice buffers ( actually, > I have one permanent buffer, with permanent "slice" buffers pointing > to bits of it and when the contents of the buffer change I send a > load of network messages - one for each of the slice buffers - this > avoids any copying or reallocating buffers ). We understand your point clearly. We'll resolve this issue with careful discussion. If no one else is working on this I'll probably give it a go myself, > but I would appreciate some advice about why it was considered a bad > idea for view buffer "containers" (mina ByteBuffer) to be pooled - > can anyone help me out here ? It is because it is very hard to keep track of NIO buffers. It becomes ver= y error-prone for a user to release the buffer while its duplicate or slice i= s being used by others. There should be a trade-off somewhere to achieve duplication and slicing of buffers. Let's keep discussing on this issue in the JIRA: http://issues.apache.org/jira/browse/DIRMINA-165 Thanks, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6 ------=_Part_24722_14117374.1140858654137 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 2/16/06, joshua portway <joshlists@stain.org> wrote:
thanks for the warning - is anyone actively working on this issue ?

Not yet unfortunately.  Any contribution is welcome.&nbs= p; ;)

If = no one else is working on this I'll probably give it a go myself,
but I = would appreciate some advice about why it was considered a bad
idea for view buffer "containers" (mina ByteBuffer) to be poo= led -
can anyone help me out here ?

It is because i= t is very hard to keep track of NIO buffers.  It becomes very error-pr= one for a user to release the buffer while its duplicate or slice is being = used by others.  There should be a trade-off somewhere to achieve dupl= ication and slicing of buffers.  Let's keep discussing on this issue i= n the JIRA:

http:/= /issues.apache.org/jira/browse/DIRMINA-165

Thanks,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D = DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255= ECA6 ------=_Part_24722_14117374.1140858654137--