We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88465a3 commit 7d87934Copy full SHA for 7d87934
db/recsplit/recsplit.go
@@ -1276,8 +1276,6 @@ func (rs *RecSplit) buildWithWorkers(ctx context.Context) error {
1276
}
1277
// taskCh capacity matches the scratch pool size: the same N scratch objects circulate
1278
// as both pool items and task payloads, so taskCh can never hold more than N items.
1279
- // To allow double-buffering (producer assembles bucket N+1 while workers process N),
1280
- // increase both freeScratchCh and taskCh to numWorkers*2.
1281
taskCh := make(chan *recsplitScratch, numWorkers)
1282
resultCh := make(chan *bucketResult, numWorkers*2)
1283
0 commit comments