Skip to content

Commit

Permalink
Increases max buffer size for bufio.Scanner even more
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Jul 19, 2022
1 parent e5ae317 commit 8f10d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8f10d05

Please sign in to comment.