a3e012d762
served by [GitHub Pages](https://pages.github.com/) and lives in the gh-pages branch. This changes moves the page contents to a more easily accessed Markdown file. PiperOrigin-RevId: 248561542 |
||
---|---|---|
.. | ||
README.md |
README.md
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. On a single core of a Core i7 processor in 64-bit mode, Snappy compresses at about 250 MB/sec or more and decompresses at about 500 MB/sec or more.
Snappy is widely used inside Google, in everything from BigTable and MapReduce to our internal RPC systems. (Snappy has previously been referred to as "Zippy" in some presentations and the likes.)
For more information, please see the README. Benchmarks against a few other compression libraries (zlib, LZO, LZF, FastLZ, and QuickLZ) are included in the source code distribution. The source code also contains a formal format specification, as well as a specification for a framing format useful for higher-level framing and encapsulation of Snappy data, e.g. for transporting Snappy-compressed data across HTTP in a streaming fashion. Note that the Snappy distribution currently has no code implementing the latter, but some of the ports do (see below).
Snappy is written in C++, but C bindings are included, and several bindings to other languages are maintained by third parties:
- C#: Snappy for .NET (P/Invoke wrapper), Snappy.NET (P/Invoke wrapper), Snappy.Sharp (native reimplementation)
- C port
- C++ MSVC packaging (plus Windows binaries, NuGet packages and command-line tool)
- Common Lisp: Library bindings, native reimplementation
- Erlang: esnappy, snappy-erlang-nif
- Go
- Haskell
- Haxe (C++/Neko)
- iOS packaging
- Java: JNI wrapper (including the framing format), native reimplementation, other native reimplementation (including the framing format)
- Lua
- Node.js (including the framing format)
- Perl
- PHP
- Python (including a command-line tool for the framing format)
- R
- Ruby
- Rust
- Smalltalk (including the framing format)
Snappy is used or is available as an alternative in software such as
- MongoDB
- Cassandra
- Couchbase
- Hadoop
- LessFS
- LevelDB (which is in turn used by Google Chrome)
- Lucene
- VoltDB
If you know of more, do not hesitate to let us know. The easiest way to get in touch is via the Snappy discussion mailing list.