grotere buffer voor scanner

This commit is contained in:
Peter Kleiweg
2026-08-04 13:32:12 +02:00
parent 1de42635d0
commit c37c54148e
26 changed files with 44 additions and 6 deletions

View File

@@ -77,6 +77,7 @@ func doText(filename string) {
x(err)
defer func() { x(fp.Close()) }()
scanner := bufio.NewScanner(fp)
scanner.Buffer(nil, 1000000)
for scanner.Scan() {
line := scanner.Text()
if !strings.HasPrefix(line, "##META") {