mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-29 18:32:46 +00:00
74aae6a46c
A hasFields map that only ever contains 3 entries seems more complex than necessary. It's simpler and more performant to just track three discrete boolean variables for each of the cases. Change-Id: I1ba20da130f6b560a57fe8c3a73968983e563b48 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/235477 Reviewed-by: Herbie Ong <herbie@google.com>