提交 07fe7d34 编写于 作者: H Heejae Chang

set roslyn service hub process to have below normal process priority

上级 98f38d5e
......@@ -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) :
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册