Commit 476ddaa
Your Name
fix(store): deduplicate entry points + add [module] prefix to process labels
Two process detection improvements:
1. Deduplicate entry points after Route resolution (step 1c).
Route resolution (step 1b) resolves each Route to ALL functions in the
handler file. When N routes point to the same file with M functions,
each function appeared N times in the entry point list. The BFS loop
then generated N identical processes per entry point.
Fix: O(n^2) dedup pass over ep_ids[] after Route resolution, before BFS.
Compacts the array in-place, frees duplicate name strings.
2. Add [module] prefix to process labels for navigability.
Labels were just entry -> terminal which is useless for finding
the right flow among 50+ processes. Now derives the parent directory
from the entry point file_path and prepends it as a module tag.
Before: funcA -> funcZ
After: [controllers] funcA -> funcZ
Tested on multiple repos with significant dedup ratios.
Requires full reindex to regenerate process tables.1 parent 2997cdb commit 476ddaa
1 file changed
+66
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4768 | 4768 | | |
4769 | 4769 | | |
4770 | 4770 | | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
| 4776 | + | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
| 4786 | + | |
| 4787 | + | |
| 4788 | + | |
| 4789 | + | |
| 4790 | + | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
| 4796 | + | |
| 4797 | + | |
| 4798 | + | |
4771 | 4799 | | |
4772 | 4800 | | |
4773 | 4801 | | |
| |||
4964 | 4992 | | |
4965 | 4993 | | |
4966 | 4994 | | |
4967 | | - | |
| 4995 | + | |
| 4996 | + | |
| 4997 | + | |
| 4998 | + | |
| 4999 | + | |
| 5000 | + | |
| 5001 | + | |
| 5002 | + | |
| 5003 | + | |
| 5004 | + | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
| 5008 | + | |
| 5009 | + | |
| 5010 | + | |
| 5011 | + | |
| 5012 | + | |
| 5013 | + | |
| 5014 | + | |
| 5015 | + | |
| 5016 | + | |
| 5017 | + | |
| 5018 | + | |
| 5019 | + | |
| 5020 | + | |
| 5021 | + | |
| 5022 | + | |
| 5023 | + | |
| 5024 | + | |
| 5025 | + | |
4968 | 5026 | | |
4969 | | - | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
| 5030 | + | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
4970 | 5034 | | |
4971 | 5035 | | |
4972 | 5036 | | |
| |||
0 commit comments