]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: use bufio.Reader directly in lexer
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 11 Mar 2016 18:39:20 +0000 (13:39 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Fri, 11 Mar 2016 21:27:23 +0000 (21:27 +0000)
commit5aa5db7593537e43b024d65b07f2a9c3379f100e
treee9aa499000336be14cef33b37222c67e98b164a3
parentcc158403d618eafc476b0727f44e4468c61060f6
cmd/compile: use bufio.Reader directly in lexer

Removes an intermediate layer of functions that was clogging up a
corner of the compiler's profile graph.

I can't measure a performance improvement running a large build
like jujud, but the profile reports less total time spent in
gc.(*lexer).getr.

Change-Id: I3000585cfcb0f9729d3a3859e9023690a6528591
Reviewed-on: https://go-review.googlesource.com/20565
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/bimport.go
src/cmd/compile/internal/gc/export.go
src/cmd/compile/internal/gc/lex.go
src/cmd/compile/internal/gc/parser.go
src/cmd/internal/obj/util.go
test/syntax/ddd.go [new file with mode: 0644]