Lines Matching refs:zlib
1 Zstandard wrapper for zlib
4 …ing a zstd wrapper for [zlib](http://zlib.net/) is to allow a quick and smooth transition to zstd …
8 To build the zstd wrapper for zlib the following files are required:
9 - zlib.h
10 - a static or dynamic zlib library
17 The first two files are required by all projects using zlib and they are not included with the zstd…
23 Let's assume that your project that uses zlib is compiled with:
27 - change all references with `#include "zlib.h"` to `#include "zstd_zlibwrapper.h"`
37 Your project should work as before with zlib. There are two options to enable zstd compression:
41 During decompression zlib and zstd streams are automatically detected and decompressed using a prop…
42 …anged using `ZWRAP_setDecompressionType(ZWRAP_FORCE_ZLIB)` what will make zlib decompression sligh…
46 We have take the file `test/example.c` from [the zlib library distribution](http://zlib.net/) and c…
49 zlib version 1.2.8 = 0x1280, compile flags = 0x65
58 Then we have changed `#include "zlib.h"` to `#include "zstd_zlibwrapper.h"`, compiled the [example.…
63 zlib version 1.2.8 = 0x1280, compile flags = 0x65
74 #### The measurement of performance of Zstandard wrapper for zlib
76 The zstd distribution contains a tool called `zwrapbench` which can measure speed and ratio of zlib…
98 The ordinary zlib compression of two files/streams allocates two contexts:
108 To check the difference we made experiments using `zwrapbench -ri6b6` with zstd and zlib compressio…
110 The table below shows that reusing contexts has a minor influence on zlib but it gives improvement …
115 | zlib 1.2.8 | 30.51 MB/s | 219.3 MB/s | 6819783 | 3.45…
116 | zlib 1.2.8 not reusing a context | 30.22 MB/s | 218.1 MB/s | 6819783 | 3.45…
117 | zlib 1.2.8 with zlibWrapper and reusing a context | 30.40 MB/s | 218.9 MB/s | 6819783 | 3.45…
118 | zlib 1.2.8 with zlibWrapper not reusing a context | 30.28 MB/s | 218.1 MB/s | 6819783 | 3.45…
126 After enabling zstd compression not all native zlib functions are supported. When calling unsupport…