Snappy is a compression/decompression library. It does not aim for maximum compression, or compatibility with any other compression library; instead, it aims for very high speeds and reasonable compression. For instance, compared to the fastest mode of zlib, Snappy is an order of magnitude faster for most inputs, but the resulting compressed files are anywhere from 20% to 100% bigger. Snappy is intended to be fast. On a single core of a Core i7 processor in 64-bit mode, it compresses at about 250 MB/sec or more and decompresses at about 500 MB/sec or more. (These numbers are for the slowest inputs in our benchmark suite; others are much faster.) In our tests, Snappy usually is faster than algorithms in the same class (e.g. LZO, LZF, QuickLZ, etc.) while achieving comparable compression ratios.
Features
- Compression speeds at 250 MB/sec and beyond, with no assembler code
- Over the last few years, Snappy has compressed and decompressed petabytes of data in Google's production environment
- The Snappy bitstream format is stable and will not change between versions
- The Snappy decompressor is designed not to crash in the face of corrupted or malicious input
- Free and open source software
- Snappy is licensed under a BSD-type license