MQL5-Google-Onedrive/.jules
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
..
bolt.md Bolt: optimize git branch analysis in review script 2026-02-20 17:26:49 +00:00
deploy.yml Add dev container setup, cloud deployment configs, and Jules deployment automation 2026-01-19 09:53:30 +07:00