couchdb-snappy.git
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