govd/util
stefanodvx 0d986d4573 fix: resolve memory leaks in download utility
1. writing chunks directly to disk instead of buffering in memory
2. using fixed-size buffers (32KB) for all I/O operations
3. optimizing buffer allocation strategy in downloadInMemory
4. implementing proper file synchronization with mutex locks
5. calculating chunk boundaries on-the-fly instead of pre-allocating

the memory profiling showed excessive allocations in bytes.growSlice
which has been addressed by minimizing intermediate buffers and
eliminating unnecessary memory copies

these changes should fix the observed OOM issues when downloading
large files while maintaining the same functionality
2025-04-28 14:35:22 +02:00
..
av code cleanup 2025-04-24 12:20:35 +02:00
parser code cleanup 2025-04-24 12:20:35 +02:00
consts.go Init 2025-04-14 13:05:43 +02:00
download.go fix: resolve memory leaks in download utility 2025-04-28 14:35:22 +02:00
edgeproxy.go code cleanup 2025-04-24 12:20:35 +02:00
errors.go Init 2025-04-14 13:05:43 +02:00
fingerprint.go improved docs 2025-04-24 00:25:04 +02:00
http.go code cleanup 2025-04-24 12:20:35 +02:00
img.go code cleanup 2025-04-24 12:20:35 +02:00
misc.go code cleanup 2025-04-24 12:20:35 +02:00
traverse.go util: adds TraverseJSON 2025-04-14 15:24:06 +02:00