Does protobuf-net have built-in compression for serialization?

前端 未结 2 1271
我寻月下人不归
我寻月下人不归 2021-02-02 08:39

I was doing some comparison between BinaryFormatter and protobuf-net serializer and was quite pleased with what I found, but what was strange is that protobuf-net m

2条回答
  •  星月不相逢
    2021-02-02 09:13

    At least the c++ library does support writing to and from compressed streams:

    https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/io/gzip_stream.h

    I'm not sure though if that has been ported to the .Net implementation.

提交回复
热议问题