-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer reusal in the BufferingResponseListener #12687
Comments
@wendigo definitely a good to have. |
@wendigo this might be trickier than expected. The default max size for The default max capacity for If the response content is within 64 KiB, then the So yes, there is a benefit for small content, but for larger content you need to size the |
@sbordet that's why in the PR i've posted I've used NonPooled one to make it compatible with the current implementation. For the pooled usage, the consumer should be responsible for providing a pool that actually pools |
@wendigo do you need this in 12.0.x? I ask because there is a better way to manage the buffers without the However, the behavior of WDYT? |
12.1 works for me |
* Introduced RetainingResponseListener as an efficient alternative to BufferingResponseListener, so there is no need to allocate buffers, just to retain the chunks. * Fixed bug in RBB.takeByteArray(). * Replaced usages of BufferingResponseListener with RetainingResponseListener. Signed-off-by: Simone Bordet <[email protected]>
Jetty version(s)
12.x
Enhancement Description
Is it possible for the
BufferingResponseListener
to acceptByteBufferPool
to reuse buffers instead of allocating them per request?The text was updated successfully, but these errors were encountered: