有没有办法使 zip 或其他压缩文件解压速度更快?
我想知道是否有办法制作 zip 文件或任何其他压缩文件(tar、gz 等),以便尽快解压。我只是想将一个文件夹移动到另一台计算机,所以我不关心文件的大小。但是,我正在压缩一个大文件夹(~100 Mbs),我想知道是否有一种方法可以更快地提取 zip 文件,或者其他标准是否可以更快地解压缩文件。
谢谢!
I'd like to know if there's a way to make a zip file, or any other compressed file (tar,gz,etc) that will extract as quickly as possible. I'm just trying to move one folder to another computer, so I'm not concerned with the size of the file. However, I'm zipping up a large folder (~100 Mbs), and I was wondering if there's a method to extract a zip file quicker, or if another standard can decompress files more quickly.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简而言之,压缩始终是速度和大小之间的权衡。即,更快的压缩通常意味着更小的大小 - 但除非您使用软盘来传输数据,否则通过使用更快的压缩方法获得的时间意味着更多的网络时间来传输数据。但话虽如此,不同方法的速度和压缩比取决于您要压缩的文件的结构。
您还必须考虑软件的可用性 - 是否值得花时间下载和编译压缩程序?我想如果值得花时间在这里等待答案,那么要么您正在使用 RFC1149 网络,要么您将经常这样做。
在这种情况下,答案很简单:使用代表性数据集自行测试程序。
The short answer is that compression is always a trade off between speed and size. i.e. faster compression usually means smaller size - but unless you're using floppy disks to transfer the data, the time you gain by using a faster compression method means more network time to haul the data about. But having said that, the speed and compression ratio for different mathods varies depending on te structure of the file(s) you are compressing.
You also have to consider availability of software - is it worth spending the time downloading and compiling a compression program? I guess if its worth the time waiting for an answer here then either you're using an RFC1149 network or you're going to be doing this a lot.
In which case the answer is simple: test the programs yourself using a representative dataset.