From 2efc438b385d8d1b432b79c5819be8d147371327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 5 Dec 2016 15:21:24 +0000 Subject: [PATCH] syntax: allocate literals less often --- syntax/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/parser.go b/syntax/parser.go index c56caa3d5..73d0172bb 100644 --- a/syntax/parser.go +++ b/syntax/parser.go @@ -112,7 +112,7 @@ func (p *parser) reset() { func (p *parser) lit(pos Pos, val string) *Lit { if len(p.litBatch) == 0 { - p.litBatch = make([]Lit, 32) + p.litBatch = make([]Lit, 64) } l := &p.litBatch[0] p.litBatch = p.litBatch[1:]