1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:11:21 -06:00
go/src
Russ Cox 382b44eb7c [dev.cc] cmd/5g etc: code cleanup: delay var decls and eliminate dead code
Ran rsc.io/grind rev 6f0e601 on the source files.

The cleanups move var declarations as close to the use
as possible, splitting disjoint uses of the var into separate
variables. They also remove dead code (especially in
func sudoaddable), which helps with the var moving.

There's more cleanup to come, but this alone cuts the
time spent compiling html/template on my 2013 MacBook Pro
from 3.1 seconds to 2.3 seconds.

Change-Id: I4de499f47b1dd47a560c310bbcde6b08d425cfd6
Reviewed-on: https://go-review.googlesource.com/5637
Reviewed-by: Rob Pike <r@golang.org>
2015-02-23 21:36:06 +00:00
..
archive archive/tar: set Header.Mode in example 2015-01-26 01:54:06 +00:00
bufio
builtin
bytes bytes, strings: improve documentation for Count functions 2015-01-22 18:28:35 +00:00
cmd [dev.cc] cmd/5g etc: code cleanup: delay var decls and eliminate dead code 2015-02-23 21:36:06 +00:00
compress all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
container
crypto [dev.cc] crypto/md5, crypto/sha1: restore a few SP references 2015-02-20 18:54:29 +00:00
database/sql database/sql: reduce lock contention in Stmt.connStmt 2015-01-24 09:56:25 +00:00
debug
encoding encoding/json: Fixed the comment specifying Marshal behavior for maps. 2015-02-18 23:57:36 +00:00
errors
expvar expvar: fix build 2015-02-05 13:53:29 +00:00
flag
fmt cmd/gc: allocate buffers for non-escaped strings on stack 2015-01-28 20:12:38 +00:00
go go/token: document that column positions and file offsets are in bytes 2015-02-23 18:35:28 +00:00
hash
html all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
image image/jpeg: support 16-bit quantization tables and Extended Sequential 2015-02-19 05:00:43 +00:00
index/suffixarray
internal net/mail: move RFC 2047 code to internal/mime 2015-02-23 17:46:37 +00:00
io
lib9 [dev.cc] all: merge master (5f1efe7) into dev.cc 2015-02-13 12:51:56 -05:00
libbio
liblink [dev.cc] liblink: disable GOOBJ=2 default 2015-02-13 18:37:31 +00:00
log log: add SetOutput method on Logger 2015-01-30 16:00:10 +00:00
math math/big: don't return io.EOF on successful call of ParseFloat 2015-02-23 19:20:15 +00:00
mime
net net/mail: move RFC 2047 code to internal/mime 2015-02-23 17:46:37 +00:00
os all: fix typo in doc 2015-02-17 04:37:18 +00:00
path path/filepath: add example for filepath.Split 2015-02-20 07:35:57 +00:00
reflect Call --> CallSlice in two spots. No logic change, docs only. 2015-02-22 17:22:04 +00:00
regexp regexp: update URLs in tests 2015-01-26 01:54:28 +00:00
runtime [dev.cc] all: merge master (6a10f72) into dev.cc 2015-02-23 14:28:54 -05:00
sort sort: fixed small typo in comments 2015-02-08 23:38:50 +00:00
strconv strconv: simplified logic resulting in faster float formatting 2015-02-11 17:45:19 +00:00
strings bytes, strings: improve documentation for Count functions 2015-01-22 18:28:35 +00:00
sync [dev.cc] cmd/asm: make 4(SP) illegal except on 386 2015-02-18 03:41:29 +00:00
syscall [dev.cc] runtime, syscall: add names to FP offsets in freebsd, netbsd arm assembly 2015-02-23 16:52:33 +00:00
testing testing: pad benchmark names to align results 2015-02-07 21:52:25 +00:00
text
time Build fix for plan9 after 8bf13838eb. 2015-02-08 22:30:46 +00:00
unicode unicode: Fixed an out of date comment (MaxLatin1, not Latin1Max). 2015-02-16 21:35:33 +00:00
unsafe unsafe: minor doc string improvements 2015-01-28 19:42:15 +00:00
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: remove use of cp --preserve. 2015-02-13 21:16:25 +00:00
clean.bash
clean.bat
clean.rc
make.bash [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
make.bat [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
Make.dist
make.rc [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
nacltest.bash cmd/dist: reactivate vfp detection on linux/arm 2015-02-10 00:17:06 +00:00
race.bash [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
race.bat [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
run.bash [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
run.bat [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
run.rc [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00