From 11bfa042040803061fa8cf04ab00d0e815ebafad Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Tue, 25 Apr 2023 17:27:47 +0100 Subject: Completely rewrites the JSON parser to make more extensive use of slices and decrease the number mallocs --- main/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/command.go b/main/command.go index 0db545b..9403020 100644 --- a/main/command.go +++ b/main/command.go @@ -44,7 +44,7 @@ func (cmd AppendNextCommand) exec(state *ProgramState) { if err != nil { panic("Missing next value") } - state.value = append(state.value, nextItem.Value...) + state.value = walk.ConcatData(state.value, nextItem.Value) state.path = nextItem.Path } -- cgit v1.2.3