protobuf 编码之varint/zigzag

2018-02-24  本文已影响94人  已不再更新_转移到qiita

发现Avro为了对int、long类型数据压缩,采用Protocol Buffers的ZigZag编码Thrift也采用了类似的算法.


参考:

https://izualzhy.cn/protobuf-encode-varint-and-zigzag
https://www.cnblogs.com/en-heng/p/5570609.html

上一篇 下一篇

猜你喜欢

热点阅读