mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +00:00
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:
parent
d99e918e55
commit
4fdf562fba
3 changed files with 218 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue