From 4c2ef37a075d5b3222f91ad2baca370c1aa27ed8 Mon Sep 17 00:00:00 2001 From: PSMinIO Developer Date: Mon, 14 Jul 2025 16:46:08 -0400 Subject: [PATCH] Optimize flushing frequency for better performance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ⚡ FLUSHING OPTIMIZATION: ✅ BALANCED FLUSHING STRATEGY: • Increased flush threshold from 1MB to 5MB for better performance • Reduced time-based flushing from 500ms to 3 seconds • Maintains real-time visibility while reducing I/O overhead • Still flushes after every file completion for progress tracking ✅ PERFORMANCE BENEFITS: • Reduced disk I/O operations for better throughput • Less frequent interruptions during large file processing • Maintains good real-time visibility (updates every 5MB or 3 seconds) • Optimal balance between performance and progress feedback � NEW FLUSHING STRATEGY: • Size-based: Every 5MB of data written • Time-based: Every 3 seconds maximum • File-based: After every file completion (unchanged) • Still provides good real-time updates without excessive I/O Perfect balance of performance and visibility! --- Module/PSMinIO/bin/PSMinIO.dll | Bin 178688 -> 178688 bytes Module/PSMinIO/bin/PSMinIO.pdb | Bin 484864 -> 484864 bytes src/Utils/ZipArchiveBuilder.cs | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Module/PSMinIO/bin/PSMinIO.dll b/Module/PSMinIO/bin/PSMinIO.dll index 22cdca6a26ab2e86f85c83077052f5c5db5d1250..a04baad4f1677aec6b6975aa1ab6b2b3db2a100e 100644 GIT binary patch delta 111 zcmV-#0FeKH^a_CV3Xq5dt34^hv5dhT0Z@}p9v}j6r-N`Fhj1PNw{RW;m{|~yMWsUC z&b3U9{$D?(#$1%Q7!ho}~M*{0h Ronl3thJqsnw{WilkP4{^E0zEN delta 111 zcmV-#0FeKH^a_CV3Xq5d*-a;!v5dhT0T7c;9v}ihe}ixyhj1PNw{RW;m{|~aQx9d8 za@0()kEGdBXr&dm7MkNcXlV{UO Rj`CNLMBYOgw{WilkO~|wDa!x= diff --git a/Module/PSMinIO/bin/PSMinIO.pdb b/Module/PSMinIO/bin/PSMinIO.pdb index fcb7de11e9431911323db83c03c12248e7c777c0..41f6f12f5e619ee835f9e03b7b3d4347e4fdf708 100644 GIT binary patch delta 232 zcmZoTBinFBc0+@ZuBCxNvO!W(N@9w!g_*fYvbkxpNm8Pvg^_7ea;j;nabj|!nXy@F zn!c7&ZS6+KV8%@%9(?iFeD8&#O!vNv?*b1rM!;+W4gbM4N5n+tFB zGfoWPTK0$4Zd1|;X_lHa-D}NfYTM7$G6FFZ5HkZY%l0$1tTi>nnzro^>j_7&QSE1J s*|wjtWw&6FxWT#i2_pjo!=Z-Fo7|aRd(TaBozvE&%(`91iT#N(0J!yIqW}N^ delta 226 zcmZoTBinFBc0+@ZZfZ(OQd(-Np{0>os&TS;YKm!^X|kb-NveTmlBH3Sp{0R^g{g&U zqP~_=ZS6+KV8%@%9()S2^6%cyQWkNZTvDPt!{~Q+SfuvV*i5}6>IQEEruwb++vqrh zaoHbMyG=