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
This commit is contained in:
Rob Leidle 2024-08-09 16:46:52 -07:00
parent d8de6da30a
commit 2272aa121a

View file

@ -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;
}
/*