It should be used anytime you require a large direct buffer (generally
for IO operations). Depending on your app you may not need to use them
directly at all, although Undertow will always use them internally.
The buffers are fixed size which is determined dynamically (unless
explicitly specified), generally they will be 16kb as this seems to
give optimal IO performance.
On Mon, Jun 12, 2017 at 11:06 AM, Violeta Georgieva <milesg78(a)gmail.com> wrote:
I have few questions about Undertow's ByteBufferPool.
Are there any best practices how it should be used?
Also are the ByteBuffers always fixed in size?
undertow-dev mailing list