directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Federico Bonelli (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-165) Easy and performant copy of the ByteBuffer
Date Thu, 19 Jan 2006 15:55:43 GMT
    [ http://issues.apache.org/jira/browse/DIRMINA-165?page=comments#action_12363261 ] 

Federico Bonelli commented on DIRMINA-165:
------------------------------------------

I agree that buffers need all the duplicate-like methods, but what about pooling them?

If all the buffers copied _and the parent too_ have to be unpooled, it may increase a lot
the time of allocation for direct buffers, especially in case of a massive use of copies that
could be very light for CPU.

It is certainly better than all the copies have pooled = false, and could not be changed,
but the parent can be pooled, I think, after that all the copies have been released.
WDYT?



> Easy and performant copy of the ByteBuffer
> ------------------------------------------
>
>          Key: DIRMINA-165
>          URL: http://issues.apache.org/jira/browse/DIRMINA-165
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.9, 0.8.2, 0.8.1, 0.8
>     Reporter: Federico Bonelli
>     Priority: Minor
>  Attachments: ByteBuffer.java, HubServer_broadCastTCPmessages.zip
>
> Until now if you wish to broadcast a message you must create by your own the bytebuffer
copies, it would be better to provide a ByteBuffer.asReadOnly() method that create a copy
that share the data with the original ByteBuffer

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message