directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Federico Bonelli (JIRA)" <>
Subject [jira] Commented: (DIRMINA-165) Easy and performant copy of the ByteBuffer
Date Thu, 19 Jan 2006 15:55:43 GMT
    [ ] 

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.

> Easy and performant copy of the ByteBuffer
> ------------------------------------------
>          Key: DIRMINA-165
>          URL:
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.9, 0.8.2, 0.8.1, 0.8
>     Reporter: Federico Bonelli
>     Priority: Minor
>  Attachments:,
> 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:
For more information on JIRA, see:

View raw message