I have a file transfer application that sends files and folders. (Server-client)
I try to send data via TCP (sockets), I made some rules for data transfer, so if it sends a large folder with a lot of files, it first compresses them into one ZIP file, and then this mail file is sent , the receiver must unpack it. so I decided to use SharpZibLib and I have a question about this.
What type of compression should I choose for my application?I read about the differences between ZIP and GZIP and found that GZIP has better compression to reduce size, and since I don't need to extract a special file from the GZIP file later, there is no need to use ZIP instead of from GZIP!but there are many types in this library that I still don’t know, so should I use gzip or would another type be better for my application?
PS:
First priority for time, the point of using SharpZipLib is to put (too many files) in one file so that it is sent much faster than sending (too many files) one at a time.
more details here .
source
share