Remove a copy / pasta section that duplicated the work done in ChunkCodebaseIndexer (#1834)
This cuts the amount of time spent in this section of indexing in half Co-authored-by: Rob Leidle <rleidle@tesla.com>
This commit is contained in:
parent
d5976c23b6
commit
b961b4e03e
1 changed files with 0 additions and 18 deletions
|
|
@ -114,24 +114,6 @@ export class ChunkCodebaseIndex implements CodebaseIndex {
|
|||
handleChunk(chunk);
|
||||
}
|
||||
|
||||
accumulatedProgress =
|
||||
(i / results.compute.length) * (1 - progressReservedForTagging);
|
||||
yield {
|
||||
progress: accumulatedProgress,
|
||||
desc: `Chunking ${getBasename(item.path)}`,
|
||||
status: "indexing",
|
||||
};
|
||||
markComplete([item], IndexResultType.Compute);
|
||||
// Insert chunks
|
||||
for await (const chunk of chunkDocument(
|
||||
item.path,
|
||||
contents[i],
|
||||
this.maxChunkSize,
|
||||
item.cacheKey,
|
||||
)) {
|
||||
handleChunk(chunk);
|
||||
}
|
||||
|
||||
accumulatedProgress =
|
||||
(i / results.compute.length) * (1 - progressReservedForTagging);
|
||||
yield {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue