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:
parent
d8de6da30a
commit
2272aa121a
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue