最小内存为RAR DECOM pression [英] Minimum memory for RAR decompression

查看:94
本文介绍了最小内存为RAR DECOM pression的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是运行RAR DECOM pression算法所需的最小内存?

What's the minimum memory needed to run a RAR decompression algorithm?

我想将一个RAR DECOM pression算法,手机(iPhone,Android和黑莓),并想知道是否有一个最低限度的记忆开始前需要。我听说RAR DECOM pression需要比ZIP DECOM pression更多的内存。

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.

推荐答案

不少。字典的最大大小是<一href="http://svn.php.net/viewvc/pecl/rar/trunk/technote.txt?revision=298704&view=markup&sortby=date#l173"相对=nofollow> 4MB的的,但至少在正式的unrar库(其被来自同一来源的截至压缩建)<一href="http://svn.php.net/viewvc/pecl/rar/trunk/unrar/suballoc.cpp?revision=290883&view=markup&sortby=date#l89"相对=nofollow>接管24 MB 的一些DECOM pression算法。

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.

(以最后声明:注意, T 至少为1 MB( UINT T = SASize&LT;小于20; ),但也可以是更多的是因为<一href="http://svn.php.net/viewvc/pecl/rar/trunk/unrar/model.cpp?revision=290883&view=markup&sortby=date#l564"相对=nofollow> SASize可能超过1 )

(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)

这篇关于最小内存为RAR DECOM pression的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆