Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Setup payload: 64 MB LZMA dictionary over 96 MB segments; make-setup always builds the current Setup code

KnifeLemon3251b3a34d0a
diff --git a/build/build-installer.ps1 b/build/build-installer.ps1
index fadb6206..f4e396f7 100644
--- a/build/build-installer.ps1
+++ b/build/build-installer.ps1
@@ -113,7 +113,7 @@ $fast = @(if ($CheckOnly) { '--fast' })
Push-Location $root
try {
$program = Join-Path $setupProgram 'Filee.Setup.exe'
- Invoke-Checked 'make-setup' { dotnet run build/tools/make-setup.cs -- $program $PublishDir $Version $setupExe @fast }
+ Invoke-Checked 'make-setup' { dotnet run --no-cache build/tools/make-setup.cs -- $program $PublishDir $Version $setupExe @fast }
}
finally {
Pop-Location
diff --git a/src/Filee.Setup/Payload/SetupPayload.cs b/src/Filee.Setup/Payload/SetupPayload.cs
index 56f4e75a..ecf62728 100644
--- a/src/Filee.Setup/Payload/SetupPayload.cs
+++ b/src/Filee.Setup/Payload/SetupPayload.cs
@@ -261,10 +261,13 @@ public sealed class SetupPayload : IDisposable
public void Dispose() => _file.Dispose();
/// <summary>Raw size from which files start a new segment (each segment is compressed on its own core).</summary>
- public const long SegmentSize = 48L << 20;
+ public const long SegmentSize = 96L << 20;
- /// <summary>LZMA dictionary: as large as a segment, so matches reach across all of it.</summary>
- private const int Dictionary = 48 << 20;
+ /// <summary>
+ /// LZMA dictionary: matches reach 64 MB back, past the largest file. Unpacking needs this much memory per
+ /// segment (at most four at once).
+ /// </summary>
+ private const int Dictionary = 64 << 20;
/// <summary>Programs whose x86/x64 code the branch filter makes more compressible.</summary>
public static bool IsProgram(string path) =>