An update the recently added tsv-select --exclude operation. The implementation allocates memory up to the maximum excluded field. Users have no way to know this, but might casually enter arbitrarily large numbers if they want to ensure trimming the all fields beyond a certain number.
This PR limits the max excluded field to 1048576 (more than 1 million fields). This is certainly a large number of fields for TSV files, and should ensure the common case works well. The limit can be increased if use-cases arise.
An update the recently added
tsv-select --exclude
operation. The implementation allocates memory up to the maximum excluded field. Users have no way to know this, but might casually enter arbitrarily large numbers if they want to ensure trimming the all fields beyond a certain number.This PR limits the max excluded field to 1048576 (more than 1 million fields). This is certainly a large number of fields for TSV files, and should ensure the common case works well. The limit can be increased if use-cases arise.