Commit graph

2 commits

Author SHA1 Message Date
google-labs-jules[bot]
fb700df574 Bolt: optimize git branch metadata retrieval in review_pull_requests.py
Optimized the git branch review process by consolidating multiple redundant
'git log' and 'git branch' calls into a single bulk 'git for-each-ref' command.

Key improvements:
- Used '%(ahead-behind:main)' atom (Git 2.41+) to fetch ahead/behind counts in bulk.
- Implemented 'BRANCH_METADATA_CACHE' to avoid redundant subprocess calls.
- Reduced system-level 'execve' calls from ~2400 to ~600 (75% reduction).
- Reduced execution time by ~30% for repositories with many branches.
- Added robust parsing for commit subjects using 'split("|", 3)'.
- Maintained fallback support for older Git versions.

Measurement:
- Before: ~2378 execve calls, ~0.65s
- After: ~603 execve calls, ~0.45s
- Total subprocesses removed: ~1700+

Impact: Significantly faster PR review summaries, especially in CI environments.
2026-02-24 10:53:05 +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