Skip to content

Commit

Permalink
chore: use Optimal compression level
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Jun 4, 2023
1 parent e8cf2a8 commit c39b56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GZCTF/Utils/Codec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public async static Task<Stream> ZipFilesAsync(IEnumerable<LocalFile> files, str

foreach (var file in files)
{
var entry = zip.CreateEntry(Path.Combine(zipName, file.Name), CompressionLevel.Fastest);
var entry = zip.CreateEntry(Path.Combine(zipName, file.Name), CompressionLevel.Optimal);
await using var entryStream = entry.Open();
await using var fileStream = File.OpenRead(Path.Combine(basepath, file.Location, file.Hash));
await fileStream.CopyToAsync(entryStream, token);
Expand Down

0 comments on commit c39b56e

Please sign in to comment.