Skip to content

DevServer: share/dedup Hot Reload workspace per (solution + baseline + target framework) #24207

Open

Description

@dr1rrb

Follow-up from the investigation on #24151.

Today every app connection builds its own workspace + EnC baseline even for the same solution, so two connections = two full workspaces (~2x ~500 MB), no sharing.

A naive "one workspace per solution" is not currently possible:

  • a late-joining app has no stored deltas to catch up with the current generation;
  • the baseline is not necessarily the same — in particular an app for a different target framework has a different baseline, and EnC deltas must be accumulated per target.

Proposal (long-term): key Hot Reload workspaces on (solution + baseline identity + target framework) and share when they match; accumulate the EnC delta stream per target so that additional or reconnecting apps of the same target attach to the existing workspace (replaying stored deltas to the current generation) instead of spawning a new one. This bounds memory for the common multi-app / reconnect case at the root, without breaking multi-targeting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions