protobuf-go/reflect
Damien Neil c600d6c086 all: do best-effort initialization check on fast path unmarshal
Add a fast check for required fields to the fast path unmarshal.
This is best-effort and will fail to detect some initialized
messages: Messages with more than 64 required fields, messages
split across multiple tags, possibly other cases.

In the cases where it works (which is most of them in practice),
this permits us to skip the IsInitialized check.

Change-Id: I6b70953a333033a5e64fb7ca37a59786cb0f75a0
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/215878
Reviewed-by: Joe Tsai <joetsai@google.com>
2020-01-22 20:57:14 +00:00
..
protodesc proto: add Clone function and MergeOptions.Clone method 2020-01-06 21:07:28 +00:00
protoreflect all: do best-effort initialization check on fast path unmarshal 2020-01-22 20:57:14 +00:00
protoregistry internal/testprotos: hide all public testprotos 2020-01-12 08:32:55 +00:00