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.
Stuart
On Mon, Jun 12, 2017 at 11:06 AM, Violeta Georgieva <milesg78(a)gmail.com> wrote:
Hi,
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?
Thanks,
Violeta
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev