RAR解压的最小内存
运行 RAR 解压缩算法所需的最小内存是多少?
我想将 RAR 解压缩算法移植到手机(iPhone、Android 和 BlackBerry)上,并想知道开始之前是否需要最低限度的内存。我听说 RAR 解压比 ZIP 解压需要更多的内存。
What's the minimum memory needed to run a RAR decompression algorithm?
I want to port a RAR decompression algorithm to mobiles (iPhone, Android and BlackBerry) and want to know if there's a bare minimum of memory needed before starting. I've heard that RAR decompression requires much more memory than ZIP decompression.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
相当多。字典的最大大小为 4 MB,但至少是官方的 unrar 库(与 WinRAR 的来源相同)在某些解压算法中占用超过 24 MB。
(至于最后一条语句:请注意,
t
至少为 1 MB (uint t=SASize << 20;
),但可以更大,因为 SASize 可能大于 1)Quite a lot. The maximum size of the dictionary are 4 MB, but at least the official unrar library (which is built from the same source as WinRAR) takes over 24 MB in some decompression algorithms.
(as to the last statement: note that the
t
is at least 1 MB (uint t=SASize << 20;
), but can be more because SASize may be more than 1)无法提供具体数字,但我记得 2001 年我在 PocketPC 上使用 WinRAR,当时只有 64mb RAM,其中大约一半用于共享存储 — 所以我很确定一部现代手机就足够了。
Can't give you a concrete number, but I remember using WinRAR back in 2001 on my PocketPC with only 64mb of RAM, about half of which was shared for storage -- so I'm pretty sure a modern phone should suffice.
iPhone 上有很多支持 .cbr 的漫画查看器,所以我认为这是可行的。
There are plenty of Comic Viewers on the iPhone that support .cbr so I its doable.