Skip to content

Commit b97b8b8

Browse files
committed
More parallel
1 parent 71575e1 commit b97b8b8

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

AutoSSH.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<TargetFramework>net8.0</TargetFramework>
66
<TrimMode>partial</TrimMode>
77
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
8-
<!-- <PublishAot>true</PublishAot> -->
8+
<PublishAot>true</PublishAot>
99
</PropertyGroup>
1010

1111
<ItemGroup>

AutoSSHApp.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public override string ToString()
3737
}
3838
}
3939

40-
private static readonly ParallelOptions parallelOptions = new ParallelOptions { MaxDegreeOfParallelism = 16 };
41-
private static readonly ParallelOptions parallelOptions2 = new ParallelOptions { MaxDegreeOfParallelism = 4 };
40+
private static readonly ParallelOptions parallelOptions = new ParallelOptions { MaxDegreeOfParallelism = 64 };
41+
private static readonly ParallelOptions parallelOptions2 = new ParallelOptions { MaxDegreeOfParallelism = 16 };
4242
private static SecureString userName;
4343
private static SecureString password;
4444
private static long bytesDownloaded;

Properties/PublishProfiles/FolderProfile.pubxml

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
1111
<TargetFramework>net8.0</TargetFramework>
1212
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1313
<SelfContained>true</SelfContained>
14-
<PublishSingleFile>true</PublishSingleFile>
15-
<PublishTrimmed>true</PublishTrimmed>
16-
<PublishReadyToRun>false</PublishReadyToRun>
14+
<PublishSingleFile>false</PublishSingleFile>
15+
<PublishReadyToRun>true</PublishReadyToRun>
1716
</PropertyGroup>
1817
</Project>

0 commit comments

Comments
 (0)