From eec321bac1c830919326f6285019bb1111b229e6 Mon Sep 17 00:00:00 2001 From: David Valentine Date: Tue, 15 Oct 2024 12:13:09 -0600 Subject: [PATCH] #138 apply buffer increase from nabu code --- internal/millers/graph/bnodefix.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/millers/graph/bnodefix.go b/internal/millers/graph/bnodefix.go index 263464df..51e2b46c 100644 --- a/internal/millers/graph/bnodefix.go +++ b/internal/millers/graph/bnodefix.go @@ -18,6 +18,10 @@ func GlobalUniqueBNodes(nq string) string { // make a map here to hold our old to new map m := make(map[string]string) + // need for long lines like in Internet of Water + buf := make([]byte, 0, 64*1024) + scanner.Buffer(buf, 1024*1024) + for scanner.Scan() { //fmt.Println(scanner.Text()) // parse the line