Hot path in cmdRoadmapAnnotateDependencies called planData.find() on every checklist line. Replaced with a first-wins Map built once before the loop so each line resolves in O(1); first-wins preserves exact .find() semantics and null-on-miss → wave-1 default is unchanged. Fixes #314 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
.changeset/314-roadmap-plan-id-map.md
Normal file
5
.changeset/314-roadmap-plan-id-map.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
type: Fixed
|
||||
pr: 314
|
||||
---
|
||||
`roadmap annotate-dependencies` now indexes plan data by ID in a Map before the checklist loop, reducing plan lookup from O(lines×plans) to O(lines+plans).
|
||||
Reference in New Issue
Block a user