Skip to content

Commit

Permalink
syntax: allocate literals less often
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Dec 5, 2016
1 parent d90ad41 commit 2efc438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit 2efc438

Please sign in to comment.