mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
Optimizes the `getLatestFile` function in `scripts/agent/run-scheduler-cycle.mjs` by parallelizing the reading and parsing of log files using `Promise.all`. This replaces the sequential `for...of` loop which caused I/O bottlenecks when processing large numbers of log files. Measured improvement: ~56% faster (530ms -> 207ms) for 1000 log files. Also removed a tracked `test_output.log` file that shouldn't be in the repository. Co-authored-by: PR0M3TH3AN <[email protected]>