Skip to content

Commit f7965b3

Browse files
yamadashyclaude
andcommitted
fix(metrics): Fix comment to say output generation instead of token counting
The overlap is between file metrics and output generation (await outputPromise), not output token counting which starts only after the output resolves. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7a10399 commit f7965b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/metrics/calculateSelectiveFileMetrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { FileMetrics } from './workers/types.js';
1010
// Each batch is sent as a single message to a worker thread, avoiding
1111
// per-file round-trip costs (~0.5ms each) that dominate when processing many files.
1212
// A size of 10 keeps individual worker tasks small so that workers become available sooner,
13-
// enabling overlap between file metrics and output token counting.
13+
// enabling overlap between file metrics and output generation.
1414
// When tokenCountTree is disabled, metrics only processes a small number of top files
1515
// (e.g., topFilesLength * 10 = 50 by default), so a smaller batch size avoids
1616
// a single batch monopolizing one worker.

0 commit comments

Comments
 (0)