Menu

#113 Build Message for part of an array or ByteBuffer

None
closed
nobody
None
5
2019-05-18
2016-07-18
No

Message can only be created for full byte array. If I want to write a DNS server, I need to allocate a new array for each request. I wanted to use Netty which use a ByteBuf that either provides a reused byte[] or give access to a direct ByteBuffer.
So if was able to create Message from this ByteBuffer I will avoid a new byte[] for each message and have higher performance and less GC.

Discussion

  • Brian Wellington

    Feel free to submit a patch.

     
  • Ingo

    Ingo - 2019-05-18

    Ticket moved from /p/dnsjava/feature-requests/23/

     
  • Ingo

    Ingo - 2019-05-18
    • status: open --> closed
    • Group: -->
     
  • Ingo

    Ingo - 2019-05-18

    If you still think this is an issue/use case, please create a pull request on dnsjava's new home at Github: https://github.com/dnsjava/dnsjava