MQL5-Google-Onedrive/.jules
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
..
bolt.md Bolt: optimize branch metadata collection in review_pull_requests.py 2026-02-21 10:48:11 +00:00
deploy.yml Add dev container setup, cloud deployment configs, and Jules deployment automation 2026-01-19 09:53:30 +07:00