Enhance syncback performance with parallel file operations

- Improved syncback performance by parallelizing filesystem writes using rayon, allowing file writes and removals to run concurrently while maintaining sequential directory operations.
- Implemented retry logic for file and directory operations on Windows to handle transient errors, enhancing reliability during syncback processes.
This commit is contained in:
Joe 2026-02-02 18:10:57 -06:00
parent d99e918e55
commit 4fdf562fba
3 changed files with 218 additions and 1 deletions

View file

@ -220,7 +220,7 @@ impl SyncbackCommand {
}
}
log::info!("Writing to the file system...");
snapshot.write_to_vfs(base_path, session_old.vfs())?;
snapshot.write_to_vfs_parallel(base_path, session_old.vfs())?;
log::info!(
"Finished syncback: wrote {} files/folders, removed {}.",
snapshot.added_paths().len(),