go: Define a bytePool for TRichTransport
Client: go TBinaryProtocol and TCompactProtocol (and as an extension, THeaderProtocol) use TRichTransport's ReadByte/WriteByte functions a lot under the hood, and in some extreme cases those ReadByte/WriteByte calls can generate a lot of allocations for the byte they used. Use a resource pool to help reduce the allocations.
Y
Yuxuan 'fishy' Wang committed
344498b67f42af38118cc250b0b1ec212f09d927
Parent: c3d8a4e
Committed by Yuxuan 'fishy' Wang <fishywang@gmail.com>
on 4/30/2024, 5:54:50 PM