=rem #16428 optimize protobuf serializer for release-2.3

 #16428 for release 2.3