From c01ebaeb30dcceac7a17771442d9af97cb2d7479 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Thu, 25 Dec 2025 22:22:56 +0100 Subject: [PATCH] Disable single file compression on publish Single file compression makes Synthesis have easily 350+ MB of extra permanent memory usage because the data cannot be memory mapped anymore: https://github.com/dotnet/docs/issues/50800 I would expect this shouldn't significantly hurt archive size, as the zip will also just apply compression. This does significantly increase the size on disk... but Skyrim modlists are absolutely huge already, so that seems acceptable to me? If the size on disk is a concern, disabling R2R seems like a much better idea. The current status seems absolutely terrible for startup time anyways. --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0853254e..3dd7cf8a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: run: | dotnet pack Synthesis.Bethesda.sln -c Release --no-build --no-restore -o out --include-symbols -p:SymbolPackageFormat=snupkg -p:PackageReleaseNotes="See https://github.com/Mutagen-Modding/Synthesis/releases/tag/${{ github.event.release.tag_name }}" - name: Pack GUI - run: dotnet publish "Synthesis.Bethesda.GUI/Synthesis.Bethesda.GUI.csproj" --configuration Release -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true + run: dotnet publish "Synthesis.Bethesda.GUI/Synthesis.Bethesda.GUI.csproj" --configuration Release -p:PublishSingleFile=true - name: Archive Release run: | powershell Compress-Archive Synthesis.Bethesda.GUI/bin/Release/net8.0/win-x64/publish/* Synthesis.zip