Refactor AvailableModules to a flat AvailableModulesSet
Replace the linked-list `AvailableModules` (with `parent` reference) and
its `AvailableModulesSnapshot` with a direct flat `AvailableModulesSet`.
`AvailabilityInfo` now holds `ResolvedVc<AvailableModulesSet>` directly.
`with_modules` eagerly merges sets instead of building a chain, and
`hash` and `contains` operate on the flat set. The `snapshot` method
and turbo-task round-trips through the linked-list are eliminated.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment