Skip to content

Optimize sequential namespace search using asyncio.gather#73

Open
ishaanxgupta wants to merge 2 commits intomainfrom
performance/code-retrieval-concurrent-search-6874361935615458554
Open

Optimize sequential namespace search using asyncio.gather#73
ishaanxgupta wants to merge 2 commits intomainfrom
performance/code-retrieval-concurrent-search-6874361935615458554

Conversation

@ishaanxgupta
Copy link
Member

What: Optimized sequential namespace searches in _search_symbols and _search_files in src/pipelines/code_retrieval.py using asyncio.gather.

Why: The codebase iterated over self.repos and awaited a separate asynchronous namespace search sequentially for each repository. This caused latency to scale linearly with the number of repositories searched. Using asyncio.gather executes these searches concurrently.

Impact: Significant reduction in latency for multi-repository code queries.

Measurement: In local mocked benchmarking with an artificial 100ms latency per namespace search and 10 configured repositories, query times dropped from 2.01 seconds to 0.20 seconds per call.


PR created automatically by Jules for task 6874361935615458554 started by @ishaanxgupta

@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@ishaanxgupta ishaanxgupta marked this pull request as ready for review March 9, 2026 07:13
@ishaanxgupta
Copy link
Member Author

lgtm @ved015 have a look

@ishaanxgupta ishaanxgupta changed the title ⚡ Bolt: Optimize sequential namespace search using asyncio.gather Optimize sequential namespace search using asyncio.gather Mar 9, 2026
@ved015
Copy link
Contributor

ved015 commented Mar 9, 2026

lgtm please merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants