Skip to content


Subversion checkout URL

You can clone with
Download ZIP
C port of the snappy compressor
C C++
Branch: master

Merge pull request #15 from pakhuchiy/win32

Add support of building snappy.c with mingw-w64
latest commit 8015f2d287
@andikleen authored


This is a C port of the google snappy compressor ( The compressor is very fast with reasonable compression ratio. It is mainly useful for projects that cannot integrate C++ code, but want snappy. Also contains a command line tool, a benchmark, random test code and a fuzz tester.

The compression code supports scather-gather and linear buffers. The scather gather code is ifdefed (-DSG) and can be removed with unifdef.

API documentation:

To generate the documentation run

make html

Requires the kerneldoc script from a Linux kernel source (may need to point the makefile to it). If you don't have the kernel source lying around just download it from and point the Makefile to it.

Andi Kleen

Something went wrong with that request. Please try again.