zlib 在慢速电脑上能有多快?
我有一台 500Mhz CPU 和 256MB RAM 的机器,运行 32 位 Linux。
我有大量大小约为 300KB 的文件。我需要非常快地压缩它们。我已将 zlib 的压缩级别设置为 Z_BEST_SPEED。我还可以采取其他措施吗?
在这样的机器上是否可以在一秒钟内压缩25-30个这样的文件?
I have a 500Mhz CPU and 256MB RAM machine running 32bit Linux.
I have a large number of files around 300KB in size. I need to compress them very fast. I have set up the compression level for zlib at Z_BEST_SPEED. Is there any other measure I could take?
Is it possible to compress 25-30 files like this in a second on such a machine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您实质上谈论的是 10MB/秒的速度。即使您只是将文件从一个地方复制到另一个地方,我也会怀疑您的慢速硬件是否可以做到这一点。因此,对于压缩,我会投票否 - 不可能“在这样的机器上一秒钟压缩 25-30 个文件”。
You are essentially talking about a 10MB/sec speed. Even if you were to only copy the files from one place to another I would doubt that your slow hardware could do it. So, for compression I would vote No - it's not possible "to compress 25-30 files like this in a second on such a machine".