Commit graph

2 commits

Author SHA1 Message Date
google-labs-jules[bot]
3e9d38bacc Bolt: optimize git branch analysis in review script
Identified and resolved a performance bottleneck in `scripts/review_pull_requests.py` where the script performed N+1 git operations by calling `git log` twice for every branch to get commit counts and dates.

Key improvements:
- Implemented bulk metadata retrieval using `git for-each-ref` with a custom format string.
- Reduced total execution time from ~1.5s to ~0.4s (a 3.5x speedup) for repositories with ~260 branches.
- Added support for high-performance commit tracking using the `ahead-behind` atom (Git 2.41+).
- Implemented a robust fallback for older Git versions to maintain cross-platform compatibility.
- Refactored the main loop to use pre-fetched data and removed the redundant `get_branch_info` function.

Measurement:
- Before: ~1.5s
- After: ~0.4s
- Speedup: ~3.5x
2026-02-20 17:26:49 +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