bash 可以用多核解压缩文件吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48823160/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 16:50:16  来源:igfitidea点击:

Is possible unzip file with multi-core?

bashunzip

提问by ale8530

I have this code:

我有这个代码:

unzip -q "file.zip" -d path

Is possibile unzip with multi-core?

可以用多核解压吗?

Thanks

谢谢

采纳答案by Stefan M

In short: No, unzipping with multiple cores is not available.

简而言之:不,无法使用多核解压缩。

The decompression normally has lower CPU-intensity than the compression (where multiple cores are often involved).

解压缩的 CPU 强度通常低于压缩(通常涉及多个内核)。

You wouldn't have much of an advantage anyway as the read/write-operations are more of the bottlenecks during decompression.

无论如何,您不会有太大的优势,因为读/写操作更多是解压期间的瓶颈。

回答by akiva

thy pigzwhich takes advantage of the multi cores and unzips in multiple threads

你的小猪利用了多核并在多线程中解压缩