commit | 1e5516a4c2f719b962d28619dab54faec3f46494 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Fri Sep 27 14:31:10 2019 -0700 |
committer | Damien Neil <dneil@google.com> | Sat Sep 28 01:00:09 2019 +0000 |
tree | bf3f584c1292fe78f39e395eb707d23bd3c3e01e | |
parent | 37ef691e6bb8269921374c007809d0a349dc6c14 [diff] |
proto: improve slice growth in MarshalAppend 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>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.