From cce21232cc83060a53ecb3a7c30d7f6fbfd7a529 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Tue, 25 Apr 2023 09:56:00 +0100 Subject: Now uses a buffered output for writing to improve performance --- main/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main') diff --git a/main/main.go b/main/main.go index e6730de..0c7324b 100644 --- a/main/main.go +++ b/main/main.go @@ -40,10 +40,11 @@ func main() { program := Parse(tokens) stdin := bufio.NewReader(os.Stdin) + stdout := bufio.NewWriter(os.Stdout) state := ProgramState { in: walk.NewJSONIn(stdin), - out: walk.NewJSONOut(), + out: walk.NewJSONOut(stdout), program: program, } -- cgit v1.2.3