From b961b4e03e39a47cd9d1f6057384a3da31455e55 Mon Sep 17 00:00:00 2001 From: Rob Leidle Date: Thu, 25 Jul 2024 15:35:49 -0700 Subject: [PATCH] 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 --- core/indexing/chunk/ChunkCodebaseIndex.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/core/indexing/chunk/ChunkCodebaseIndex.ts b/core/indexing/chunk/ChunkCodebaseIndex.ts index 39404eeaa..23967866a 100644 --- a/core/indexing/chunk/ChunkCodebaseIndex.ts +++ b/core/indexing/chunk/ChunkCodebaseIndex.ts @@ -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 {