net-protocol icon indicating copy to clipboard operation
net-protocol copied to clipboard

Avoid rbuf copying on the first read

Open marshall-lee opened this issue 1 year ago • 4 comments

When the caller doesn't specify the destination, there's no need to append the rbuf to empty string - the rbuf slice itself could be used as initial dest value.

marshall-lee avatar Aug 31 '22 10:08 marshall-lee