summaryrefslogtreecommitdiff
path: root/internal/processor/processor_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-08 10:15:35 +0300
committerPaul Buetow <paul@buetow.org>2026-04-08 10:15:35 +0300
commitfc1857e1b485e7011fb80b40ee7e5146fe2350e7 (patch)
tree5fba41b61f5ed801350a5a63bab1cca4a8d37b2c /internal/processor/processor_test.go
parentf7deedf50f6fa00c7dfe989ed381989e202b3057 (diff)
batch: pre-allocate WordEntry slice from line count in ReadBatchFile
Use make([]WordEntry, 0, len(lines)) after splitting normalized content to avoid repeated growth on append. Return nil when no entries are parsed so empty batch files still yield a nil slice like before. Made-with: Cursor
Diffstat (limited to 'internal/processor/processor_test.go')
0 files changed, 0 insertions, 0 deletions