Skip to content

Commit 6c63436

Browse files
committed
Fix slow file tree
1 parent 83452f0 commit 6c63436

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

packages/protocol/src/common/proxy.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,10 @@ export abstract class Batch<T, A> {
158158
private readonly maxCount: number = 100,
159159
/**
160160
* Flush after not receiving more requests for this amount of time.
161+
* This is pretty low by default so essentially we just end up batching
162+
* requests that are all made at the same time.
161163
*/
162-
private readonly idleTime: number = 100,
164+
private readonly idleTime: number = 1,
163165
) {}
164166

165167
public add = (args: A): Promise<T> => {

scripts/vscode.patch

+12
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,18 @@ index 74dad64..7bc591a 100644
953953
+ this.handle.stdout.once('data', () => this.retry.recover());
954954
@@ -110,0 +113 @@ export class OutOfProcessWin32FolderWatcher {
955955
+ return this.retry.run();
956+
diff --git a/src/vs/workbench/services/files2/node/diskFileSystemProvider.ts b/src/vs/workbench/services/files2/node/diskFileSystemProvider.ts
957+
index 18edf56..8e5b395 100644
958+
--- a/src/vs/workbench/services/files2/node/diskFileSystemProvider.ts
959+
+++ b/src/vs/workbench/services/files2/node/diskFileSystemProvider.ts
960+
@@ -79,2 +79,2 @@ export class DiskFileSystemProvider extends Disposable implements IFileSystemPro
961+
- for (let i = 0; i < children.length; i++) {
962+
- const child = children[i];
963+
+ await Promise.all(children.map(async (child) => { // for (let i = 0; i < children.length; i++) {
964+
+ // const child = children[i];
965+
@@ -88 +88 @@ export class DiskFileSystemProvider extends Disposable implements IFileSystemPro
966+
- }
967+
+ })); // }
956968
diff --git a/src/vs/workbench/services/heap/node/heap.ts b/src/vs/workbench/services/heap/node/heap.ts
957969
index 8f627ba..9a795eb 100644
958970
--- a/src/vs/workbench/services/heap/node/heap.ts

0 commit comments

Comments
 (0)