Parsing: make channel allocation faster
This commit is contained in:
parent
0793c088b9
commit
4ec382cd22
2
zscan.go
2
zscan.go
|
@ -171,7 +171,7 @@ func parseZone(r io.Reader, origin, f string, t chan *Token, include int) {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
s := scanInit(r)
|
s := scanInit(r)
|
||||||
c := make(chan lex, 1000)
|
c := make(chan lex)
|
||||||
// Start the lexer
|
// Start the lexer
|
||||||
go zlexer(s, c)
|
go zlexer(s, c)
|
||||||
// 6 possible beginnings of a line, _ is a space
|
// 6 possible beginnings of a line, _ is a space
|
||||||
|
|
Loading…
Reference in New Issue