protobuf
protobuf copied to clipboard
use 'switch' for 'oneof' in Serialize and IsInitialized
In generated cpp code, is it ok to use 'switch' for 'oneof' in method 'SerializeWithCachedSizes', 'SerializeWithCachedSizesToArray' and 'IsInitialized '? If the field num is too many in a 'oneof',this can reduce time cost.
Seems like this was already implemented. Closing.