/ go Public
io: optimize WriteString with a pool of buffer #28311
Feedback is required from experts, contributors, and/or the community before a change can be made.
The current implementation of
byteif the writer doesn't implement
I think we can avoid this memory allocation by using a pool of buffer.
I wrote a proof of concept:
The benchmark result:
I know we can't import
A real implementation would require to copy a private implementation of
The text was updated successfully, but these errors were encountered: