提交 7355646b 编写于 作者: C Cyrus Najmabadi

Lower syncing delay from VS to OOP

上级 4210f42d
......@@ -108,7 +108,7 @@ private async Task StartAsync(CancellationToken cancellationToken)
private async Task StartWorkerAsync(CancellationToken cancellationToken)
{
_workQueue = new AsyncBatchingWorkQueue<DesignerAttributeData>(
TimeSpan.FromMilliseconds(500),
TimeSpan.FromMilliseconds(250),
this.NotifyProjectSystemAsync,
cancellationToken);
......
......@@ -17,19 +17,17 @@ namespace Microsoft.VisualStudio.LanguageServices.Remote
{
internal static class RemoteHostOptions
{
// Update primary workspace on OOP every 4 seconds if VS is not running any global operation
// such as build, solution open/close, rename and etc.
// Even if primary workspace is not updated, OOP will work as expected. updating primary workspace
// on OOP should let latest data to be synched pre-emptively rather than on demand.
// Update primary workspace on OOP twice a second if VS is not running any global operation (such as build,
// solution open/close, rename, etc.)
//
// 2 second is our usual long running interactive operation delay and
// 5 second is usual ambient long running operation delay.
// I chose one in between. among 3 and 4 seconds, I chose slower one - 4 second.
// Even if primary workspace is not updated, other OOP queries will work as expected. Updating primary workspace
// on OOP should let latest data to be synced pre-emptively rather than on demand, and will kick off
// incremental analyzer tasks.
//
// When primary workspace is staled, missing data will be synced to OOP on
// demand and cached for 3 min. enough for primary workspace in OOP to be synced to latest.
// When primary workspace is staled, missing data will be synced to OOP on demand and cached for 3 min. enough
// for primary workspace in OOP to be synced to latest.
public static readonly Option<int> SolutionChecksumMonitorBackOffTimeSpanInMS = new Option<int>(
nameof(InternalFeatureOnOffOptions), nameof(SolutionChecksumMonitorBackOffTimeSpanInMS), defaultValue: 4000,
nameof(InternalFeatureOnOffOptions), nameof(SolutionChecksumMonitorBackOffTimeSpanInMS), defaultValue: 500,
storageLocations: new LocalUserProfileStorageLocation(InternalFeatureOnOffOptions.LocalRegistryPath + nameof(SolutionChecksumMonitorBackOffTimeSpanInMS)));
// use 64bit OOP
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册