mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-21 15:50:15 +01:00
Merge branch 'master' of github.com:ckolivas/lrzip
This commit is contained in:
commit
1456fcc0c6
4
README
4
README
|
|
@ -308,6 +308,10 @@ A. See http://www.7-zip.org and http://www.p7zip.org. Also, see the file
|
|||
./lzma/C/lzmalib.h which explains the LZMA properties used and the LZMA
|
||||
memory requirements and computation.
|
||||
|
||||
Q. This version is much slower than the old version?
|
||||
A. Make sure you have set CFLAGS and CXXFLAGS. An unoptimised build will be
|
||||
almost 3 times slower.
|
||||
|
||||
LIMITATIONS
|
||||
Due to mmap limitations the maximum size a window can be set to is currently
|
||||
2GB on 32bit unless the -U option is specified. Files generated on 64 bit
|
||||
|
|
|
|||
7
main.c
7
main.c
|
|
@ -776,10 +776,13 @@ int main(int argc, char *argv[])
|
|||
/* Decrease usable ram size on 32 bits due to kernel /
|
||||
* userspace split. Cannot allocate larger than a 1
|
||||
* gigabyte chunk due to 32 bit signed long being
|
||||
* used in alloc */
|
||||
* used in alloc, and at most 3GB can be malloced, and
|
||||
* 2/3 of that makes for a total of 2GB to be split
|
||||
* into thirds.
|
||||
*/
|
||||
control.usable_ram = MAX(control.ramsize - 900000000ll, 900000000ll);
|
||||
control.maxram = MIN(control.maxram, control.usable_ram);
|
||||
control.maxram = MIN(control.maxram, one_g);
|
||||
control.maxram = MIN(control.maxram, one_g * 2 / 3);
|
||||
} else
|
||||
control.usable_ram = control.maxram;
|
||||
round_to_page(&control.maxram);
|
||||
|
|
|
|||
Loading…
Reference in a new issue