pomelo-cn icon indicating copy to clipboard operation
pomelo-cn copied to clipboard

protobuf内的string问题

Open peiweippww opened this issue 11 years ago • 2 comments

在pomelo中的porotobuf中,required string这种数据类型有没有压缩过? 有的时候文本可能很大,需要压缩,不知道protobuf有没有实现类似于gzip的压缩?

peiweippww avatar May 02 '13 08:05 peiweippww

字串没压

2013/5/2 peiweippww [email protected]

在pomelo中的porotobuf中,required string这种数据类型有没有压缩过? 有的时候文本可能很大,需要压缩,不知道protobuf有没有实现类似于gzip的压缩?

— Reply to this email directly or view it on GitHubhttps://github.com/NetEase/pomelo-cn/issues/181 .

xiecc avatar May 02 '13 10:05 xiecc

protobuf协议本身就没有string压缩的,直接使用utf-8编码。如果要压缩string,可以先压缩,然后将压缩后的内容作为string传输。

demon0925 avatar May 06 '13 03:05 demon0925