-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Optimize Hook System Performance #32
Merged
Merged
Conversation
This file contains 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
- Add a new module `profiling` in `lib.rs` and update the profiling code - Add new dependencies in `Cargo.toml`: `rayon`, `parking_lot`, and `num_cpus` - Modify `patch_test.rs` tests to use `TestPatchDiff::is_empty` instead of `diff.is_empty` - Update minor version in `Cargo.lock` from `0.2.56` to `0.2.57` - Include new dependencies in `Cargo.lock`: `crossbeam-deque`, `crossbeam-epoch`, `crossbeam-utils`, `either`, `rayon`, and `rayon-core`
…sponding test case
…mplementation for hook.rs
oleander
added a commit
that referenced
this pull request
Feb 8, 2025
* feat: Hook System Performance changes * Add profiling module and update supporting libraries - Add a new module `profiling` in `lib.rs` and update the profiling code - Add new dependencies in `Cargo.toml`: `rayon`, `parking_lot`, and `num_cpus` - Modify `patch_test.rs` tests to use `TestPatchDiff::is_empty` instead of `diff.is_empty` - Update minor version in `Cargo.lock` from `0.2.56` to `0.2.57` - Include new dependencies in `Cargo.lock`: `crossbeam-deque`, `crossbeam-epoch`, `crossbeam-utils`, `either`, `rayon`, and `rayon-core` * Build inline * No changes detected to generate a commit message. * Change ignore_whitespace_change setting from true to false * Remove import of PathBuf from patch_test.rs * Remove redundant import statements in patch_test.rs * Refine token allocation logic in process_chunk function and add corresponding test case * Add concurrent safety test for process_chunk function in hook.rs * Update diff comparison in hook.rs to only retrieve index diff for staged changes * Update hook.rs to handle case with no HEAD and add corresponding tests * Refactor method to handle unsuccessful reference resolution in Args implementation for hook.rs --------- Co-authored-by: Git AI Test <test@example.com>
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.
Improves the performance and reliability of the Git hook system.
Changes: