Skip to content

Compression

deng_ran edited this page Jul 8, 2021 · 4 revisions

English | 中文

If the data class is annotated by the annotation EnableCompress, FastProto will compress the data after serialization and decompress the data before deserialization. The following compression algorithms are supported:

  • gzip(default)
  • deflate
@EnableCompress(CompressPolicy.GZIP)
public class Weather {
    ...
}
Clone this wiki locally