diff --git a/Module/PSMinIO/bin/PSMinIO.dll b/Module/PSMinIO/bin/PSMinIO.dll index 22cdca6..a04baad 100644 Binary files a/Module/PSMinIO/bin/PSMinIO.dll and b/Module/PSMinIO/bin/PSMinIO.dll differ diff --git a/Module/PSMinIO/bin/PSMinIO.pdb b/Module/PSMinIO/bin/PSMinIO.pdb index fcb7de1..41f6f12 100644 Binary files a/Module/PSMinIO/bin/PSMinIO.pdb and b/Module/PSMinIO/bin/PSMinIO.pdb differ diff --git a/src/Utils/ZipArchiveBuilder.cs b/src/Utils/ZipArchiveBuilder.cs index 8e1b397..212b7bb 100644 --- a/src/Utils/ZipArchiveBuilder.cs +++ b/src/Utils/ZipArchiveBuilder.cs @@ -19,10 +19,10 @@ namespace PSMinIO.Utils private bool _disposed = false; // Performance optimization fields - private const long FlushThreshold = 1 * 1024 * 1024; // 1MB (very frequent flushing for real-time updates) + private const long FlushThreshold = 5 * 1024 * 1024; // 5MB (balanced flushing for good performance) private long _bytesWrittenSinceFlush = 0; private DateTime _lastFlush = DateTime.UtcNow; - private const int FlushIntervalMs = 500; // 500ms (very frequent time-based flushing) + private const int FlushIntervalMs = 3000; // 3 seconds (reasonable time-based flushing) // Cancellation support private CancellationTokenSource? _cancellationTokenSource;