-
Notifications
You must be signed in to change notification settings - Fork 9.2k
perf(core): implement parallel file processing for 74% performance improvement #4763
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
Merged
SandyTao520
merged 9 commits into
google-gemini:main
from
Han5991:han5991/batch-file-processing
Aug 5, 2025
Merged
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e2423d6
test(core): add failing tests for parallel batch file processing
Han5991 fe0456f
feat(core): implement parallel file processing in ReadManyFilesTool
Han5991 c5dd406
refactor: update test descriptions for parallel processing
Han5991 0e8a4eb
refactor(core): remove redundant comment in read-many-files tool
Han5991 0e0a00f
refactor(core): enhance error handling in parallel file processing
Han5991 b6bce6d
Merge branch 'main' into han5991/batch-file-processing
jacob314 3962256
refactor(core): standardize file processing result structure
Han5991 c36b391
Merge branch 'main' into han5991/batch-file-processing
SandyTao520 29eb4ba
Merge branch 'main' into han5991/batch-file-processing
SandyTao520 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tweak so you don't need the
!after fileReadResult here and elsewhere. likely you can fix by a union type so fileReadResult is required when success is true. alternately add a case above that should never be it where you report an error if fileReadResult is undefined but success is true with a comment that it shouldn't occur.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jacob314
Fixed! Replaced non-null assertions with union types for better type safety. TypeScript now properly narrows types based on the
successfield. All tests passing ✅