commit | 7abc2def69e2d44a4bdd2c508d9fd361c8695024 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Thu Jan 09 14:13:57 2020 -0800 |
committer | Damien Neil <dneil@google.com> | Thu Jan 09 23:00:50 2020 +0000 |
tree | 0e3751b74f29558b96463b819c32ecc4d3424ef9 | |
parent | 025a0d2da12f2310d0ab1867f9329ce11e3d68a8 [diff] |
internal/impl: omit isInit func when not needed When generating the fast-path functions for a message, group, repeated message, or repeated group field, check to see if the field message type requires initialization checks. If not, leave the isInit func unset. This permits the fast-path isInitialized to skip over these fields entirely. Change-Id: Icb5c380077d2216c4215bb0ebc16408e905aaece Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/214179 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.