From 8f10d050f1b0be12e505053da174f3f39e8eed74 Mon Sep 17 00:00:00 2001 From: Tom Hudson Date: Tue, 19 Jul 2022 15:36:01 +0100 Subject: [PATCH] Increases max buffer size for bufio.Scanner even more --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f9cce3a..067ebf9 100644 --- a/main.go +++ b/main.go @@ -57,7 +57,7 @@ func main() { sc := bufio.NewScanner(os.Stdin) buf := make([]byte, 0, 64*1024) - sc.Buffer(buf, 128*1024) + sc.Buffer(buf, 1024*1024) seen := make(map[string]bool)