mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 02:40:56 +00:00
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. |
||
|---|---|---|
| .. | ||
| bolt.md | ||
| deploy.yml | ||