Commit 01930e7
perf(l10n): optimize usages query from O(N*W) global resolution to targeted lookup (19x faster)
Replace the global resolve-all-then-filter approach with a targeted search from
known records to their usages. Pre-filter candidates via HashSet membership checks
on metadata keys, wrapper IDs, and wrapper names, then resolve only the small
candidate set. Also fix a pre-existing wrapper-caller double-counting bug where
callers already represented as owners of direct usages were listed twice, and add
catalog proximity dedup for multi-catalog projects.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent eec4e0f commit 01930e7
3 files changed
Lines changed: 372 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 297 | + | |
300 | 298 | | |
301 | 299 | | |
302 | 300 | | |
| |||
538 | 536 | | |
539 | 537 | | |
540 | 538 | | |
541 | | - | |
| 539 | + | |
542 | 540 | | |
543 | 541 | | |
544 | 542 | | |
| |||
0 commit comments