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/15 23:17:17 UTC

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

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Open
   Priority: Critical

    Project: Directory
 Components: 
             Snickers

   Assignee: Alex Karasulu
   Reporter: Alex Karasulu

    Created: Mon, 15 Mar 2004 2:16 PM
    Updated: Mon, 15 Mar 2004 2:16 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