aboutsummaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-02-23 22:04:20 -0800
committerRobert Griesemer <gri@golang.org>2016-02-24 16:56:51 +0000
commit8dd2ce2b980d341a4c88e4f3c95e4eca396b6a07 (patch)
tree8257f3e78f9648ddf2c930f7e0979e94935bdfc9 /src/database
parent38d4511b104ad61d949d91652985bcdef8cbea5a (diff)
downloadgo-8dd2ce2b980d341a4c88e4f3c95e4eca396b6a07.tar.xz
cmd/compile: factor our literal lexing from main lexer function
Further reduces complexity of lexer.next which is now readable. Also removes the need to initialize various local variables in each next call even if they are not used for the current token. No measurable performance change for `time go build -a net/http` (best of 5 runs): difference < 0.3% (in the noise). Change-Id: I0d74caa2768920af1ceee027e0f46595119d4210 Reviewed-on: https://go-review.googlesource.com/19865 TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/database')
0 files changed, 0 insertions, 0 deletions