Fix bug on decompression

The uncompressed length was being used where the compressed length was expected.

The particular compression input data that triggered the bug was added to
the eunit test.
2 files changed
tree: eb61a7f96f865202e502281c50bf175f22d47d68
  1. c_src/
  2. src/
  3. support/
  4. test/
  5. .gitignore
  6. Makefile
  7. README.md
  8. rebar
  9. rebar.config
  10. TODO.txt
README.md

snappy-erlang-nif

This is an Erlang NIF for Google's snappy fast compressor and decompressor.

Google snappy's official repository and bug tracking system is at:

Its source is included in this project.

site

https://github.com/fdmanana/snappy-erlang-nif

performance tests

Snappy is much faster than zlib's deflate compression, specially for reasonably large amounts of data. Here follow a few basic tests.