protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

use 'switch' for 'oneof' in Serialize and IsInitialized

Open niuys opened this issue 11 years ago • 1 comments

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.

niuys avatar Jun 30 '15 08:06 niuys

Seems like this was already implemented. Closing.

ghost avatar Jun 10 '19 23:06 ghost