-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
instead of allocating the buffer flat
Actually there is no useful place to put the buffer back in the pool. |
I added a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: We could also just use a one-off pool for delimitedReader
s to avoid allocating them at all.
The global pool probably works just as well for this, and they can be reused by the hop stream buffers. |
Oh you mean a pool for the actual readers. Yeah, maybe so. |
Yep. |
I will merge as is, as using a pool for the delimitedReaders themselves adds quite a bit of ugly complexity (we need to track the buffers in two steps). |
Well, we could just leave the buffers inside the |
instead of allocating the buffer flat, given how short-lived it is.