Skip to content

perf(workspace): improve workspace sync performance#2787

Merged
tusharmath merged 8 commits intomainfrom
fix-workspace-info-performance
Apr 2, 2026
Merged

perf(workspace): improve workspace sync performance#2787
tusharmath merged 8 commits intomainfrom
fix-workspace-info-performance

Conversation

@tusharmath
Copy link
Copy Markdown
Collaborator

@tusharmath tusharmath commented Apr 2, 2026

fixes #2630 #2497

@github-actions github-actions bot added the type: fix Iterations on existing features or infrastructure. label Apr 2, 2026
.collect();

/// - `paths_to_upload`: Vector of absolute local file paths to upload
pub fn get_sync_paths(&self, local_hashes: Vec<FileHash>) -> (Vec<String>, Vec<String>) {
Copy link
Copy Markdown
Collaborator Author

@tusharmath tusharmath Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets use PathBuf instead of String to depict that these are paths. Create a struct to wrap and have proper names - delete: Vec<PathBuf> and upload: Vec<PathBuf>. Reuse an existing type if already exists.

@tusharmath tusharmath force-pushed the fix-workspace-info-performance branch from dfec1e5 to 493d343 Compare April 2, 2026 06:58
@tusharmath tusharmath changed the title fix(workspace_status): optimize sync path calculation and remove redundant file collection perf(workspace): improve workspace sync performance Apr 2, 2026
@github-actions github-actions bot added ci: benchmark Runs benchmarks type: performance Improved performance. labels Apr 2, 2026
@tusharmath tusharmath enabled auto-merge (squash) April 2, 2026 11:50
@tusharmath tusharmath merged commit b924d21 into main Apr 2, 2026
9 checks passed
@tusharmath tusharmath deleted the fix-workspace-info-performance branch April 2, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: benchmark Runs benchmarks type: fix Iterations on existing features or infrastructure. type: performance Improved performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Performance]: massive memory usage from forge workspace info

1 participant