Skip to content

Commit 299d2fc

Browse files
committed
[feat] initial addition of parallel zlib/gzip compressor/decompressor
1 parent 482a448 commit 299d2fc

8 files changed

Lines changed: 630 additions & 2 deletions

File tree

include/zmatlib.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ extern "C"
8282
* 10: blosc2lz4hc
8383
* 11: blosc2zlib
8484
* 12: blosc2zstd
85+
* 13: pzlib
86+
* 14: pgzip
8587
* -1: unknown
8688
*/
8789

88-
enum TZipMethod {zmZlib, zmGzip, zmBase64, zmLzip, zmLzma, zmLz4, zmLz4hc, zmZstd, zmBlosc2Blosclz, zmBlosc2Lz4, zmBlosc2Lz4hc, zmBlosc2Zlib, zmBlosc2Zstd, zmUnknown = -1};
90+
enum TZipMethod {zmZlib, zmGzip, zmBase64, zmLzip, zmLzma, zmLz4, zmLz4hc, zmZstd, zmBlosc2Blosclz, zmBlosc2Lz4, zmBlosc2Lz4hc, zmBlosc2Zlib, zmBlosc2Zstd, zmPzlib, zmPgzip, zmUnknown = -1};
8991

9092
/**
9193
* @brief advanced ZMat parameters needed for blosc2 metacompressor

private/zipmat.mexa64

-597 KB
Binary file not shown.

private/zipmat.mexmaca64

-928 KB
Binary file not shown.

private/zipmat.mexmaci64

-1.32 MB
Binary file not shown.

private/zipmat.mexw64

-521 KB
Binary file not shown.

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ZMATDIR ?=$(ROOTDIR)
1111
LIBDIR ?=$(ROOTDIR)/lib
1212

1313
MKDIR :=mkdir
14-
HAVE_ZLIB ?=miniz
14+
HAVE_ZLIB ?=yes
1515
HAVE_LZMA ?=yes
1616
HAVE_LZ4 ?=yes
1717
HAVE_ZSTD ?=yes

src/zmat.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) {
8686
"blosc2lz4hc",
8787
"blosc2zlib",
8888
"blosc2zstd",
89+
#endif
90+
#if !defined(NO_PTHREAD)
91+
"pzlib",
92+
"pgzip",
8993
#endif
9094
""
9195
};
@@ -111,6 +115,10 @@ void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) {
111115
zmBlosc2Lz4hc,
112116
zmBlosc2Zlib,
113117
zmBlosc2Zstd,
118+
#endif
119+
#if !defined(NO_PTHREAD)
120+
zmPzlib,
121+
zmPgzip,
114122
#endif
115123
zmUnknown
116124
};

0 commit comments

Comments
 (0)