Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metadata: reduce memory footprint in FromOutgoingContext
When Looking at memory profiles for cockroachdb/cockroach, we observed that the intermediate metadata.MD array constructed to iterate over appended metadata escaped to the heap. Fortunately, this is easily rectifiable. go build -gcflags '-m' google.golang.org/grpc/metadata ... google.golang.org/grpc/metadata/metadata.go:198:13: make([]MD, 0, len(raw.added) + 1) escapes to heap
- Loading branch information