Parsing: make channel allocation faster

This commit is contained in:
Miek Gieben 2015-03-19 09:18:25 +00:00
parent 0793c088b9
commit 4ec382cd22
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ func parseZone(r io.Reader, origin, f string, t chan *Token, include int) {
}
}()
s := scanInit(r)
c := make(chan lex, 1000)
c := make(chan lex)
// Start the lexer
go zlexer(s, c)
// 6 possible beginnings of a line, _ is a space