Commit graph

2 commits

Author SHA1 Message Date
google-labs-jules[bot]
0b759e7252 Bolt: optimize branch metadata collection in review_pull_requests.py
This commit addresses an N+1 performance bottleneck in the PR review script.
By using the modern Git `ahead-behind` atom in a single `git for-each-ref` call,
we reduce the number of subprocess calls from O(N) to O(1).

- Introduced `fetch_all_branch_metadata()` for bulk data retrieval.
- Implemented global cache `_BRANCH_METADATA_CACHE`.
- Added robust fallback for older Git versions (< 2.41).
- Improved `get_prs_via_git()` and `get_branch_info()` to use cached data.

Performance impact:
Execution time for 268 branches reduced from ~1.7s (estimated) to ~0.5s.
The core Git metadata fetch now takes ~0.03s instead of hundreds of sequential calls.
2026-02-21 10:48:11 +00:00
Huawei-Window-Techno
365881c76a feat: Add pull request review script and comprehensive report - Created review_pull_requests.py to analyze all PRs - Generated Pull Request Review Report with 23 open PRs analysis - Identified 20 performance optimization PRs ready for review - Documented 5 draft PRs and 2 WIP feature PRs - Added recommendations for PR consolidation and prioritization 2026-01-10 05:26:35 +07:00