Skip to content

batcher: Include batch number in LineBatch

Will Chandler (ex-GitLab) requested to merge wc/batcher-linum into main

To track the position of a given LineBatch in the input stream, add a batch_id field to it. This is indexed from one for ease of calculating line numbers, e.g. batch_id * BATCH_SIZE + linum_in_batch;

Merge request reports