directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAVIBOT-26) Create a pool of direct buffers
Date Thu, 12 Dec 2013 08:38:06 GMT
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)

Mime
View raw message