Hi!
S2 is an extension of Snappy. It can decode Snappy content but S2 content cannot be decoded by Snappy. S2 is aimed for high throughput, so it features concurrent compression for bigger payloads (streams). Benefits over Snappy: - Better compression - Concurrent stream compression - several GB/sec. - Faster decompression - Ability to quickly skip forward in compressed stream - Compatible with Snappy compressed content - Smaller max block size overhead on incompressible blocks. - An alternative, more efficient, but slightly slower compression mode available. - Block concatenation. - Automatic stream size padding. Drawbacks over Go Snappy: - Not optimized for 32 bit systems. - No AMD64 assembler compression implementation yet, meaning slightly slower compression speed on 1 core CPU. - Uses slightly more memory due to larger blocks and concurrency (configurable). The decompression compatibility means S2 can be used as a one-way upgrade to Snappy without data recompression. This package is aimed at replacing Snappy as a high speed compression package. If you are mainly looking for better compression zstandard <https://github.com/klauspost/compress/tree/master/zstd#zstd> gives better compression, but typically at speeds slightly below "better" mode in this package. Github, with more details and benchmarks: https://github.com/klauspost/compress/tree/master/s2#s2-compression -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/29ae7b93-f6aa-41b0-a1c5-ecbe0f6af2ed%40googlegroups.com.