Additional optimization for the common case of no fill needed.
@@ -689,6 +689,7 @@ class KgtkWriter(KgtkBase):
if shuffle_list is not None:
values = self.shuffle(values, shuffle_list)
+ if len(values) != self.column_count:
# Optionally fill missing trailing columns with empty values:
if self.fill_missing_columns and len(values) < self.column_count:
while len(values) < self.column_count:
