File tree Expand file tree Collapse file tree 4 files changed +568
-14
lines changed
Expand file tree Collapse file tree 4 files changed +568
-14
lines changed Original file line number Diff line number Diff line change @@ -270,3 +270,5 @@ coverage.txt
270270
271271# Go workspace file
272272go.work
273+
274+ .claude
Original file line number Diff line number Diff line change @@ -197,6 +197,29 @@ Recent performance optimizations deliver:
197197- ** 80% memory reduction** with streaming processing
198198- ** Sub-second response times** for most operations
199199
200+ ### Web Interface Performance Optimizations (2025-07-29)
201+
202+ The Export page has been significantly optimized to handle hundreds of export folders efficiently:
203+
204+ ** Key Improvements:**
205+ - ** Intelligent Caching** : 5-minute in-memory cache eliminates redundant filesystem scans
206+ - ** Lazy Loading** : Prioritizes recent exports (30 days) and loads older ones only if needed
207+ - ** Smart CSV Record Counting** : Uses file size estimation for large files instead of reading entire contents
208+ - ** Optimized Scanning** : Limits older export scans to 100 items to prevent excessive latency
209+ - ** Efficient Sorting** : Replaced bubble sort with ` sort.Slice ` for better performance
210+
211+ ** Performance Impact:**
212+ - ** Page Load Time** : Reduced from ~ 10s to <1s for typical usage patterns
213+ - ** Memory Usage** : Minimal increase due to lightweight caching of metadata only
214+ - ** I/O Operations** : Dramatically reduced through intelligent estimation and caching
215+ - ** User Experience** : Responsive interface even with hundreds of export folders
216+
217+ ** Implementation Details:**
218+ - Cache TTL: 5 minutes (configurable)
219+ - Recent exports window: 30 days (prioritized loading)
220+ - CSV estimation: ~ 80 characters per line for large files
221+ - Fallback: Precise counting for files < 1MB
222+
200223## Internationalization
201224
202225The application supports multiple languages through the ` pkg/i18n ` package:
You can’t perform that action at this time.
0 commit comments