=rem #16428 optimize protobuf serializer for master

#16428 for master
@rkuhn sorry for the late ,just came back from hometown,and off the plane,will update later