Quellcode durchsuchen

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 vor 2 Wochen
Ursprung
Commit
8d94942839
3 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 1 1
      ISHelp/isetup.xml
  2. 1 1
      Projects/Src/Compiler.SetupCompiler.pas
  3. 1 0
      whatsnew.htm

+ 1 - 1
ISHelp/isetup.xml

@@ -6240,7 +6240,7 @@ SignTool=byparam format c:
 </setuptopic>
 </setuptopic>
 
 
 <setuptopic directive="LZMANumBlockThreads">
 <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>
 <setupdefault><tt>1</tt></setupdefault>
 <body>
 <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>
 <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;
         CompressProps.BTMode := I;
       end;
       end;
     ssLZMANumBlockThreads: begin
     ssLZMANumBlockThreads: begin
-        CompressProps.NumBlockThreads := StrToIntRange(Value, 1, 32);
+        CompressProps.NumBlockThreads := StrToIntRange(Value, 1, 256);
       end;
       end;
     ssLZMANumFastBytes: begin
     ssLZMANumFastBytes: begin
         CompressProps.NumFastBytes := StrToIntRange(Value, 5, 273);
         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>
     </ul>
   </li>
   </li>
   <li><tt>[Files]</tt> section parameter <tt>Excludes</tt> can now be combined with the <tt>external</tt> flag.</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/>
   <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>
       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:
   <li>ISPP changes: