Commit 670a310
Fix MergeWith to actually inject precomputed cache instead of reconstructing
Addressed review comment: Previous MergeWith computed merged entity map but then
used vanilla constructor which rebuilt all caches, defeating the optimization.
Changes:
- Added internal constructor accepting precomputed cache (NameMap<Entity> option)
- MergeWith now injects precomputed allEntitiesByLogicalMangledNameCache
- SetLogicalMangledNameCache method properly sets the cache field
- Fast path: Precomputed cache injected, avoids O(n) rebuild on first access
- Conflict path: Cache still computed and injected
Build: ✅ Success (0 errors, 0 warnings, 3m 36s)
This actually achieves the incremental merge benefit by preserving computed
work instead of reconstructing everything from scratch.
Co-authored-by: T-Gro <[email protected]>1 parent 0507d8d commit 670a310
1 file changed
+16
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
2018 | 2031 | | |
2019 | 2032 | | |
2020 | 2033 | | |
| |||
2223 | 2236 | | |
2224 | 2237 | | |
2225 | 2238 | | |
2226 | | - | |
2227 | | - | |
2228 | | - | |
2229 | | - | |
2230 | | - | |
2231 | | - | |
2232 | | - | |
2233 | | - | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
2234 | 2242 | | |
2235 | 2243 | | |
2236 | 2244 | | |
| |||
0 commit comments