=rem #16428 optimize protobuf serializer for master

#16428 for master
By the way ,the new one is very nice:P