2
0
Эх сурвалжийг харах

Increased the maximum value of [Setup] section directive LZMANumBlockThreads from 32 to 256: LZMA SDK 25.00 raised MTCODER_THREADS_MAX from 64 to 256. Our max of 32 was already outdated: the SDK update by aff827a5 raised it from 32 to 64.

Not sure if LZMANumBlockThreadGroups should be added to set CLzma2EncProps.numThreadGroups.

Same for CLzmaEncProps.affinityGroup and CLzmaEncProps.affinityInGroup.
Martijn Laan 6 өдөр өмнө
parent
commit
8d94942839

+ 1 - 1
ISHelp/isetup.xml

@@ -6240,7 +6240,7 @@ SignTool=byparam format c:
 </setuptopic>
 
 <setuptopic directive="LZMANumBlockThreads">
-<setupvalid><tt>1</tt> through <tt>32</tt></setupvalid>
+<setupvalid><tt>1</tt> through <tt>256</tt></setupvalid>
 <setupdefault><tt>1</tt></setupdefault>
 <body>
 <p>When compressing a large amount of data, the LZMA2 compressor has the ability to divide the data into "blocks" and compress two or more of these blocks in parallel through the use of additional threads (provided sufficient processor power is available). This directive specifies the number of threads to use -- that is, the maximum number of blocks that the LZMA2 compressor may compress in parallel.</p>

+ 1 - 1
Projects/Src/Compiler.SetupCompiler.pas

@@ -2902,7 +2902,7 @@ begin
         CompressProps.BTMode := I;
       end;
     ssLZMANumBlockThreads: begin
-        CompressProps.NumBlockThreads := StrToIntRange(Value, 1, 32);
+        CompressProps.NumBlockThreads := StrToIntRange(Value, 1, 256);
       end;
     ssLZMANumFastBytes: begin
         CompressProps.NumFastBytes := StrToIntRange(Value, 5, 273);

+ 1 - 0
whatsnew.htm

@@ -203,6 +203,7 @@ Source: "https://jrsoftware.org/download.php/iscrypt.dll?dontcount=1"; DestName:
     </ul>
   </li>
   <li><tt>[Files]</tt> section parameter <tt>Excludes</tt> can now be combined with the <tt>external</tt> flag.</li>
+  <li>Increased the maximum value of <tt>[Setup]</tt> section directive <tt>LZMANumBlockThreads</tt> from 32 to 256.</li>
   <li>Parameters <tt>ExternalSize</tt>, <tt>ExtraDiskSpaceRequired</tt>, and <tt>UninstallDisplaySize</tt> now support digit separators. Example: <tt>UninstallDisplaySize=1_073_741_824</tt>.<br/>
       The same applies to <tt>[Registry]</tt> parameter <tt>ValueData</tt> if <tt>ValueType</tt> is set to <tt>qword</tt>.</li>
   <li>ISPP changes: