Page 1 of 1

Pack 7zip text file over 4Gb

Posted: Mon Jun 01, 2020 8:00 am
by Rjevsky

Code: Select all

  UseLZMAPacker()
  ; Create the packed file
  If CreatePack(0, "mycompressedfiles2.7z")
    ; add your files
    AddPackFile(0, "text_over_4_gb_size.txt", "text_over_4_gb_size.txt") 
    ClosePack(0)
  EndIf
text_over_4_gb_size.txt size is 4 405 088 234 bytes
The result is small size archive with a packed piece of text file

I use demo version of PB 5.72

Re: Pack 7zip text file over 4Gb

Posted: Mon Jun 01, 2020 12:14 pm
by mk-soft
Is a limit of LZMA
The bigger the dictionary, the better the compression ratio usually is, but dictionaries bigger than the uncompressed data are waste of RAM. Typical dictionary size is from 64 KiB to 64 MiB. The minimum is 4 KiB. The maximum for compression is currently 1.5 GiB.
Search with google

Re: Pack 7zip text file over 4Gb

Posted: Mon Jun 01, 2020 1:05 pm
by Rjevsky
If I use 7zip archiver then my pack is ok
Image

I tried all the methods of packers from purebasic and there was always an unsuccessful result