From 2272aa121a2c51de60949b82c7e7bf17a863f1dd Mon Sep 17 00:00:00 2001 From: Rob Leidle Date: Fri, 9 Aug 2024 16:46:52 -0700 Subject: [PATCH] Change the indexing batch size to a static value of 100 This appears to have a positive impact on indexing throughput on my M1 mac --- core/indexing/CodebaseIndexer.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/indexing/CodebaseIndexer.ts b/core/indexing/CodebaseIndexer.ts index fdab9a1a2..984704aa2 100644 --- a/core/indexing/CodebaseIndexer.ts +++ b/core/indexing/CodebaseIndexer.ts @@ -270,8 +270,7 @@ export class CodebaseIndexer { } private getBatchSize(workspaceSize: number): number { - // at least 10 and as much as 100 (in a repository with 10000 files) - return Math.min(100, Math.max(10, Math.floor(workspaceSize / 100))); + return 100; } /*