grpc-go/metadata
irfan sharif b602d17e45
metadata: reduce memory footprint in FromOutgoingContext (#4360)
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
2021-04-28 10:05:50 -07:00
..
metadata.go metadata: reduce memory footprint in FromOutgoingContext (#4360) 2021-04-28 10:05:50 -07:00
metadata_test.go testing: Avoid using context.Background (#3949) 2020-11-05 09:25:17 -08:00