How to do fast Zip in c++?
-
Hello Friends I want to zip some files through c++ coding very fast.I am Already using HZIP way to do but I want to do in some not compressed so it can be done fast.And actually reasong behing doing zip fast is bcoz I wanna zip those file after some regular interval of time in my application so thats y I am looking for some fast way of doing zip. Thanks In Advance. Regards Yogesh
-
Hello Friends I want to zip some files through c++ coding very fast.I am Already using HZIP way to do but I want to do in some not compressed so it can be done fast.And actually reasong behing doing zip fast is bcoz I wanna zip those file after some regular interval of time in my application so thats y I am looking for some fast way of doing zip. Thanks In Advance. Regards Yogesh
yogeshs wrote:
.I am Already using HZIP way to do but I want to do in some not compressed so it can be done fast
What do you mean by that? Have you looked at open source project like GZip[^]? What do you mean by very fast? Do you have a benchmark with existing ZIP libraries and are you sure that you need a compression program faster than that?
Best wishes, Navaneeth
-
yogeshs wrote:
.I am Already using HZIP way to do but I want to do in some not compressed so it can be done fast
What do you mean by that? Have you looked at open source project like GZip[^]? What do you mean by very fast? Do you have a benchmark with existing ZIP libraries and are you sure that you need a compression program faster than that?
Best wishes, Navaneeth
I think he means the "store" method for say winrar so it doesn't compress the files themselves but just puts them into a single archive. There should be a way to adjust the compression level to 0 and that should speed it up.
-
I think he means the "store" method for say winrar so it doesn't compress the files themselves but just puts them into a single archive. There should be a way to adjust the compression level to 0 and that should speed it up.
hello Guys Thanks For ur Reply.Now,currently I am using that open source of that zip.zpp and .h file.And I didnt use gzip.I will look into that but In actual I want that elchupathingy says,I want just winrar as store not compression. Thanks & Regards Yogesh
-
hello Guys Thanks For ur Reply.Now,currently I am using that open source of that zip.zpp and .h file.And I didnt use gzip.I will look into that but In actual I want that elchupathingy says,I want just winrar as store not compression. Thanks & Regards Yogesh
-
Hi Yogesh, I had a quick look at the zlib library and there I found in
zlib.h
(line 183):#define Z_NO_COMPRESSION 0
#define Z_BEST_SPEED 1
#define Z_BEST_COMPRESSION 9Perhaps use a class generating ZIP-files (with zlib as compression library) with the argument
Z_NO_COMPRESSION
? *untested* /M :)