google-cloud-go
google-cloud-go copied to clipboard
fix(storage): remove extra copy in gRPC Reader
We found via profiling that copy to/from the leftovers buffer was using extra CPU. This removes that additional layer of copying.
Reader integration tests pass including the ObjectReadChunksGRPC test which covers this functionality.
Still need to finish profiling to verify that this fix addresses the issue fully.