From 07fe7d34b11d5a0f419452201dac09cccbcb94f0 Mon Sep 17 00:00:00 2001 From: Heejae Chang Date: Fri, 23 Sep 2016 20:06:42 -0700 Subject: [PATCH] set roslyn service hub process to have below normal process priority --- .../Remote/ServiceHub/Services/RemoteHostService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Workspaces/Remote/ServiceHub/Services/RemoteHostService.cs b/src/Workspaces/Remote/ServiceHub/Services/RemoteHostService.cs index 674b26beb63..ce00bd54b9e 100644 --- a/src/Workspaces/Remote/ServiceHub/Services/RemoteHostService.cs +++ b/src/Workspaces/Remote/ServiceHub/Services/RemoteHostService.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.IO; using System.Threading; using System.Threading.Tasks; @@ -31,6 +32,11 @@ static RemoteHostService() // this is the very first service which will be called from client (VS) // we set up logger here RoslynLogger.SetLogger(new EtwLogger(GetLoggingChecker())); + + // Set this process's priority BelowNormal. + // this should let us to freely try to use all resources possible without worrying about affecting + // host's work such as responsiveness or build. + Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.BelowNormal; } public RemoteHostService(Stream stream, IServiceProvider serviceProvider) : -- GitLab