Commit graph

15 commits

Author SHA1 Message Date
stefanodvx
7512919190 generic code cleanup 2025-04-28 16:49:50 +02:00
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
stefanodvx
c8d0666d1d fixes (desc)
Some checks failed
telegram message / notify (push) Has been cancelled
- m3u8 parser
- segments download
- video-audio merge
2025-04-23 01:44:25 +02:00
stefanodvx
330cc39583 trying to fix segmented download 2025-04-22 13:00:53 +02:00
stefanodvx
e1f424b948 cleanup code 2025-04-20 13:03:53 +02:00
stefanodvx
0a63df9ce6 set configuration for each extractor 2025-04-20 12:19:14 +02:00
dogghi no
4a15dd0761
replace mutex with atomic ops to reduce syscalls (#4) 2025-04-17 10:33:36 +02:00
stefanodvx
12c12e53f7 fixes some lint errors 2025-04-16 17:03:16 +02:00
stefanodvx
20245c109b more cleaning logics 2025-04-15 21:32:56 +02:00
stefanodvx
ba77cc0e28 supports more env variables 2025-04-15 18:44:01 +02:00
stefanodvx
c06c7958e2 cleanup code 2025-04-15 10:46:54 +02:00
stefanodvx
26452d0f53 main: fixes downloads cleanup 2025-04-15 10:18:45 +02:00
stefanodvx
58bd5827b3 main: changes, fixes
- refactors http session usage across modules
- adjusts video info extraction
- improves temporary directory, concurrency limits, buffering, and error handling in download routines
2025-04-14 23:45:54 +02:00
stefanodvx
10c113f400 env: supports for http and socks5 proxies 2025-04-14 21:50:49 +02:00
stefanodvx
3faede7b1c Init 2025-04-14 13:05:43 +02:00