mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-22 08:03:40 +00:00
Enhances SFTP file upload performance and responsiveness by: - Throttling UI progress updates with `requestAnimationFrame` to reduce re-renders. - Optimizing Electron-side binary writes with larger chunk sizes, `subarray` for buffers, and efficient buffer handling. - Implementing IPC progress event throttling to reduce communication overhead between main and renderer processes. - Speeding up folder processing by traversing directory entries in parallel batches, with yielding to maintain UI responsiveness. Improves robustness by: - Ensuring folder uploads stop immediately upon user cancellation. - Preventing division-by-zero errors in the progress bar calculation. Also updates Claude settings to allow `npm run build:*` commands.