You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2013/12/12 09:38:06 UTC

[jira] [Created] (MAVIBOT-26) Create a pool of direct buffers

Emmanuel Lecharny created MAVIBOT-26:
----------------------------------------

             Summary: Create a pool of direct buffers
                 Key: MAVIBOT-26
                 URL: https://issues.apache.org/jira/browse/MAVIBOT-26
             Project: Mavibot
          Issue Type: Improvement
    Affects Versions: 1.0.0-M3
            Reporter: Emmanuel Lecharny
            Assignee: Emmanuel Lecharny
             Fix For: 1.0.0-M4


We allocate a new DirectBuffer for every single free page we allocate. Most of the time, we don't need many free pages, and once they have been used, the buffer can be discarded. It would be worthy to keep those byte buffers into a pool of buffer we can reuse.

As the write thread is not concurrent, there is no need to synchronize this pool.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)