You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by ji...@apache.org on 2004/03/27 02:35:58 UTC

[jira] Closed: (DIR-55) [ber-codec] reusing ByteBuffer instead of allocating byte[]

Message:

   The following issue has been closed.

   Resolver: Alex Karasulu
       Date: Fri, 26 Mar 2004 5:34 PM

When further than just using a reusable ByteBuffer.  Instead we began chunking the Value part of the TLV.  This involves processing it peice by peice.  An additional partialValueDecoded(Object) event method was added to the specialized BERDecoderCallback.  This sets the ball rolling for other things Alan and I need to do.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=DIR-55

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DIR-55
    Summary: [ber-codec] reusing ByteBuffer instead of allocating byte[]
       Type: Task

     Status: Closed
   Priority: Critical
 Resolution: FIXED

    Project: Directory
 Components: 
             Snickers

   Assignee: Alex Karasulu
   Reporter: Alex Karasulu

    Created: Mon, 15 Mar 2004 2:16 PM
    Updated: Fri, 26 Mar 2004 5:34 PM

Description:
Currently every new primitive TLV value has memory allocated for it.  Rather than allocate memory for it which may not be used we should be reusing a ByteBuffer of some initial size.  When we encounter Values that are too big to fit the buffer then we bump up the buffer's size to the needed buffer size by just allocating a new buffer.

This is an intermediate solution until we finish adding the disk streaming and referral functionality for TLV values.




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira