Sunday 15 May 2011

c# - Zip Files one by one Or All of them together -


I use GZip in C # . I have several files to zip and put them together. But I do not know if I zip one file after another, save them in the file, make them better than the file, and in the end just zip the created file how about the size of the output file? Which is better for small file size production?

If you are looking to optimize on the file size, you can put them in a zip file Some might be better, depending on the data in the files; The exact settings used, etc.

If you are looking for optimization at the time of running, and the library you are using is single-threaded, then you can potentially zip each file, add your own thread, But it assumes that the Gzip processor is bound, which it may not be well.

Overall, the results will probably be subjective, and depending on the extent to which you rely on the data, your best option will be to take a sample of representative files to some extent, see GZip in a different way. That works best for your needs.

No comments:

Post a Comment