Parallelize file search and text search operations using async for improved performance#32
Draft
Parallelize file search and text search operations using async for improved performance#32
Conversation
…improvements Co-authored-by: eh-main-bot <171766998+eh-main-bot@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Parallelize file search and text search operations using async for improved performance
Parallelize file search and text search operations using async for improved performance
Jun 6, 2025
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #32 +/- ##
==========================================
+ Coverage 93.09% 93.12% +0.02%
==========================================
Files 33 33
Lines 811 829 +18
==========================================
+ Hits 755 772 +17
- Misses 56 57 +1 ☔ View full report in Codecov by Sentry. |
Collaborator
|
@copilot ci failing |
…ndling Co-authored-by: eh-main-bot <171766998+eh-main-bot@users.noreply.github.com>
Contributor
Author
CI failures have been fixed in commit fc2cdd9. The issues were:
All checks now pass: linting, tests (167 passing), type checking, and documentation builds. |
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.
This PR implements asynchronous parallelization of file search operations in
SearchTextOperationto significantly improve performance, especially for large repositories or when searching across many files.Changes Made
_search_textmethod from sequential file processing to concurrent async operationsaiofilesfor non-blocking file operations_process_file_asyncto handle individual file processing asynchronouslyPerformance Improvements
Performance tests demonstrate significant improvements:
Implementation Details
Backward Compatibility
Testing
Fixes #27.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.