You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: refactor commit processing to use chunking for better memory efficiency
This change improves memory usage and scalability for repositories with large
commit histories by:
- Replacing list(commits) with chunked processing to avoid loading the entire
commit history into memory at once
- Using iterators directly to find the original commit author instead of
loading all commits first
- Processing commits in manageable chunks based on the configured chunk_size,
similar to how pull requests and issues are already handled
- Adding debug logging for commit processing progress
This approach ensures consistent memory usage regardless of repository size
and prevents potential out-of-memory issues when analyzing repositories with
extensive commit histories.
Signed-off-by: Zack Koppert <[email protected]>
0 commit comments