Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add long-running "sidecar" TaskHosts #11335

Open
rainersigwald opened this issue Jan 24, 2025 · 0 comments
Open

Add long-running "sidecar" TaskHosts #11335

rainersigwald opened this issue Jan 24, 2025 · 0 comments
Labels
Area: Visual Studio Issues related to interactions with Visual Studio or project systems. triaged
Milestone

Comments

@rainersigwald
Copy link
Member

TaskHost nodes are transient, started up as needed and torn down after task completion. But that means that there's fairly high overhead of using a TaskHost because of process-start and JIT time and limited ability to use in-memory caches (because the memory disappears between invocations/builds!).

If the .NET TaskHost becomes widely used, many or most tasks will run in it, exacerbating this overhead.

We should consider adding a new TaskHost type, which I'm calling a "sidecar" TaskHost, which will be created on-demand but live for the same lifetime as the worker node that created it. Then the only overhead of using a TaskHost would be IPC.

@rainersigwald rainersigwald added the Area: Visual Studio Issues related to interactions with Visual Studio or project systems. label Jan 24, 2025
@rainersigwald rainersigwald added this to the VS 17.14 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Visual Studio Issues related to interactions with Visual Studio or project systems. triaged
Projects
None yet
Development

No branches or pull requests

2 participants