feat: add performance optimizations and griptree command - #50
Merged
Conversation
Performance improvements: - Parallelize push command using two-phase Promise.all approach - Parallelize sync command to pull all repos concurrently - Parallelize commit command using two-phase approach - Add GitStatusCache class for caching git status calls New feature - griptrees (worktree-based multi-branch workspaces): - gr griptree add <branch> - create parallel workspace on a branch - gr griptree list - show all griptrees - gr griptree remove <branch> - remove a griptree - gr griptree lock/unlock <branch> - protect griptrees from removal Expected 3-5x speedup for workspaces with 5+ repos
- Remove unused imports: stat, getManifestsDir - Extract findGriptreeByBranch() helper to reduce code duplication - Simplify griptreeRemove, griptreeLock, griptreeUnlock functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Performance Improvements
Expected 3-5x speedup for workspaces with 5+ repos on push, sync, and commit operations.
New Commands
gr griptree add <branch>- create parallel workspace on a branchgr griptree list- show all griptreesgr griptree remove <branch>- remove a griptreegr griptree lock/unlock <branch>- protect griptrees from removalTest plan