Commit e20578b
committed
Optimize issue_graph crawler performance
- Add priority-based concurrent crawling with heap queue
- Parents get highest priority, children next, cross-refs lowest
- Timeline only fetched for focus node (reduces API calls)
- Cross-references limited to one hop (prevents explosion)
- Add isAncestor flag to skip sibling crawling
- Add verbose mode with crawl statistics
- Add tasklist extraction for batch/epic issues
- Reduce MaxGraphDepth to 4, MaxConcurrentFetches to 5
- Add rate limit backoff with exponential retry
- Remove unused fields from crawlItem/crawlResult structs
- Simplify heap implementation (no index tracking needed)
Results: 13 nodes in <10s (was timing out), focused on direct lineage1 parent 587f09a commit e20578b
File tree
4 files changed
+862
-192
lines changed- pkg/github
- __toolsnaps__
4 files changed
+862
-192
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
| 725 | + | |
725 | 726 | | |
726 | 727 | | |
727 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
0 commit comments