mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-03-10 16:14:39 +00:00
When allocating more space for the destination message in MarshalAppend, use the same slice growth algorithm as the Go runtime's append rather than allocating precisely the desired space. Change-Id: If6033f6f7abdca473bc5188c4d3938ce57d3bdd2 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/197758 Reviewed-by: Joe Tsai <joetsai@google.com>