couchdb-snappy.git
11 years agoRemoved comment code
Filipe David Manana [Sat, 26 Mar 2011 16:36:31 +0000 (16:36 +0000)] 
Removed comment code

After the fix in 8629cad7a52c01e3184b042690a9e8e6435fce95, this code has
now the expected behaviour.

11 years agoFix bug on decompression
Filipe David Manana [Sat, 26 Mar 2011 16:29:35 +0000 (16:29 +0000)] 
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.

11 years agoMore markdown fixes
Filipe David Manana [Sat, 26 Mar 2011 12:34:16 +0000 (12:34 +0000)] 
More markdown fixes

11 years agomarkdown fixes
Filipe David Manana [Sat, 26 Mar 2011 12:33:04 +0000 (12:33 +0000)] 
markdown fixes

11 years agoUpdated README.md with site info and some performance tests
Filipe David Manana [Sat, 26 Mar 2011 12:30:26 +0000 (12:30 +0000)] 
Updated README.md with site info and some performance tests

11 years agoUpdated rebar.config and the Makefile
Filipe David Manana [Sat, 26 Mar 2011 12:17:13 +0000 (12:17 +0000)] 
Updated rebar.config and the Makefile

11 years agoFix cursed copy-paste error
Filipe David Manana [Sat, 26 Mar 2011 02:34:59 +0000 (02:34 +0000)] 
Fix cursed copy-paste error

11 years agoAdded definition for enif_realloc_binary_compat
Filipe David Manana [Sat, 26 Mar 2011 02:25:49 +0000 (02:25 +0000)] 
Added definition for enif_realloc_binary_compat

11 years agoRemoved compatibility with R13B03 and fixed build on R13B04
Filipe David Manana [Sat, 26 Mar 2011 02:19:33 +0000 (02:19 +0000)] 
Removed compatibility with R13B03 and fixed build on R13B04

R13B03 doesn't provide enif_realloc_binary, so drop support for this
release.

R13B04 enif_alloc_binary and enif_realloc_binary require a first
argument of type ErlNifEnv* in R13B04, which was not being passed and
caused compilation failure on this release.

11 years agoRenamed tests
Filipe David Manana [Sat, 26 Mar 2011 02:07:42 +0000 (02:07 +0000)] 
Renamed tests

11 years agoAvoid unnecessary memory reallocations
Filipe David Manana [Sat, 26 Mar 2011 02:00:22 +0000 (02:00 +0000)] 
Avoid unnecessary memory reallocations

Before increasing the size of the buffer, it wasn't verified if there was
still room left for the new compressed data chunk.

11 years agoAvoid double buffering
Filipe David Manana [Sat, 26 Mar 2011 01:51:37 +0000 (01:51 +0000)] 
Avoid double buffering

No we no longer use an intermediary buffer which is then copied into the
binary term. This is much more efficient for large data chunks.

11 years agoAdded a few more test assertions
Filipe David Manana [Sat, 26 Mar 2011 01:51:21 +0000 (01:51 +0000)] 
Added a few more test assertions

11 years agoInitial import
Filipe David Manana [Fri, 25 Mar 2011 21:57:27 +0000 (21:57 +0000)] 
Initial import