e Use a separate solid block for each new file extension. You need to use qs option also. 對於每個新的檔案擴展名,使用一個單獨的固實區塊。你還需要使用 qs 選項 qs=on 參數設 s=e qs=on qs在後面 底下 有說明 請放心
{N}b | {N}k | {N}m | {N}g | {N}t Set a limit for the total size of a solid block in bytes / KiB / MiB / GiB / TiB. 設置固實區塊的總大小限制,以位元組 b / KiB / MiB / GiB / TiB 為單位。
The default solid block size depends on the compression method and the dictionary size. The default dictionary size depends on the compression level.
The default solid block size for all methods other than LZMA2 (LZMA, PPMD, BZIP2, Deflate, De-flate64) is caluclated by the formula:
NOTE: if LZMA2 is used, 7-Zip can split data into chunks and then it compresses those chunks simultaneously using multiple CPU threads. By default, there are 64 chunks in a solid block. LZMA2 encoder uses about 2 CPU threads per chunk at compression level 5 or higher. So by default LZMA2 encoder can use up to 128 CPU threads for compression, if CPU supports such number of threads. 7-Zip doesn't compress several solid blocks simultaneously to the 7z ar-chive. Thus, multitreading is provided only within a solid block of the 7z archive. If solid block is large, then there are more chunks in solid block, and LZMA encoder and decoder can use more cpu threads for compression and decompression.
注意:如果使用 LZMA2,7-Zip 可以將數據分割成多個區塊,然後同時使用多個 CPU 執行緒壓縮這些區塊。默認情況下,固實區塊中有 64 個區塊。在壓縮等級 5 或更高級別,LZMA2 編碼器大約使用每個區塊 2 個 CPU 執行緒。因此,根據默認設定,LZMA2 編碼器可以在 CPU 支持這麼多執行緒的情況下,使用最多 128 個 CPU 執行緒進行壓縮。7-Zip 不會同時壓縮多個固實區塊到 7z 壓縮檔案中。因此,多執行緒僅在 7z 壓縮檔案的一個固實區塊內提供。如果固實區塊很大,那麼固實區塊中會有更多的區塊,LZMA 編碼器和解碼器可以使用更多的 CPU 執行緒進行壓縮和解壓。
Limitation of the solid block size usually decreases compression ratio but gives the following advantages:
固實區塊大小的限制通常會降低壓縮比,但帶來以下優勢:
• it reduces data loss in case of future archive damage. 它減少未來檔案損壞時的數據損失
• it reduces extraction time of a group of files (or just one file), so long as the group doesn't contain the entire archive. 它減少一組文件(或僅一個文件)的提取時間,只要該組不包含整個檔案。
set solid mode with 100 files & 256 MB limits per one solid block for 7z format.
qs=[off | on]
Enables or disables sorting files by type in solid archives. The default mode is qs=off.
Old versions of 7-Zip (before version 15.06) used file sorting "by type" ("by extension").
New versions of 7-Zip (starting from version 15.06) support two sorting orders:
• qs- : sorting by name : it's default order.
• qs : sorting by type (by file extension).
You can get big difference in compression ratio for different sorting methods, if dictionary size is smaller than total size of files. If there are similar files in different folders, the sorting "by type" can provide better compression ratio in some cases.
Note that sorting "by type" has some drawbacks. For example, NTFS volumes use sorting or-der "by name", so if an archive uses another sorting, then the speed of some operations for files with unusual order can fall on HDD devices (HDDs have low speed for "seek" operations).
設置固體模式,對於 7z 格式的每個固實區塊限制 100 個文件和 256 MB。qs=[off | on]啟用或禁用在固體檔案中按類型排序文件。默認模式為 qs=off。舊版本的 7-Zip(在 15.06 版本之前)使用按類型(按擴展名)排序文件。新版本的 7-Zip(從 15.06 版本開始)支持兩種排序方式: qs- : 按名稱排序 : 這是默認排序。 qs : 按類型排序(按文件擴展名)。如果字典大小小於文件的總大小,則對於不同的排序方法,你可以獲得壓縮比的巨大差異。如果在不同文件夾中有相似的文件,則按類型排序在某些情況下可以提供更好的壓縮比。請注意,按類型排序有一些缺點。例如,NTFS 卷使用按名稱的排序順序,因此如果壓縮文件使用其他排序,則對於具有不尋常排序的文件,一些操作的速度可能會在 HDD 設備上下降(HDD 在尋找操作上速度較慢)。
If "qs" mode provides much better compression ratio than default "qs-" mode, you still can in-crease compression ratio for "qs-" mode by increasing of dictionary size.
If you think that unusual file order is not problem for you, and if better compression ratio with small dictionary is more important for you, use "qs" mode.
如果 "qs" 模式提供的壓縮比比默認的 "qs-" 模式好得多,您仍然可以透過增加字典大小來提高 "qs-" 模式的壓縮比。如果您認為不尋常的文件順序對您來說不是問題,而且如果小字典下更好的壓縮比對您來說更重要,那麼請使用 "qs" 模式。
Note: There are some files (for example, executable files), that are compressed with additional filter. 7-Zip can't use different compression methods in one solid block, so 7-zip can create several groups of files that don't follow "by name" order in "qs-" mode, but files inside each group are still sorted by name in "qs-" mode.
f=[off | on | FilterID]
Enables or disables compression filters. The default mode is f=on, when 7-zip uses filter for some files: executables files (dll, exe, ocx, sfx, sys) and wav files. for x86 executables it can use BCJ2 filter in Ultra (x9) mode and BCJ filter in other modes. If f=FilterID if specified, 7-zip uses specified filter for all files. FilterID can be: Delta:{N}, BCJ, BCJ2, ARM64, ARM, ARMT, RISCV, IA64, PPC, SPARC.
hc=[off | on]
Enables or disables archive header compressing. The default mode is hc=on. If archive header compressing is enabled, the archive header will be compressed with LZMA method.
he=[off | on]
Enables or disables archive header encryption.
The default mode is he=off (archive header encryption is disabled).
The archive header contains metadata of the stored files (file names, file sizes, timestamps, at-tributes) and other additional archive metadata information.
If archive header encryption option is disabled (he=off), the archive header will be stored without encryption. If archive header encryption option is enabled (he=on), and a password is specified (-p switch on the command line or the password entered in the "Password" field in the GUI), then both file data and headers will be encrypted.
C:\Program Files\7-Zip>7z a -pcyn -mhe=on e:\bc\s.7z e:\raw
在路徑 輸入這行即可 7z a -pcyn -mhe=on e:\bc\s.7z e:\raw
b{C1}[s{S1}]:{C2}[s{S2}]
Binds output stream S1 in coder C1 with input stream S2 in coder C2. If stream number is not specified, stream with number 0 will be used.
Usally coder has one input stream and one output stream. In 7z some coders can have multiple input and output streams.
For example, BCJ2 encoder has one input stream and four output streams.