Closed Leonardo-Ferreira closed 11 months ago
The only real answer is that you would have to test and see. 256 bytes is pretty small, but you have a lot of them.
I suspect it would still be beneficial--you'll avoid creating a ton of buffers that will trigger GC. OTOH, as long as their in-use time was quite short, they would be cleaned up in gen0 anyway, so it might be a wash.
I can clearly measure the benefit of this package for buffers larger than 8kb, but what about those smaller than 256 bytes?
My scenario is that I use buffers to buff incoming http request/response in order to log the request body, pretty much like this:
A single pod usually handles peaks of about 1000 requests per minute (17 req/s)...
so I was wondering how effective is this on my scenario?