1
0
mirror of https://github.com/golang/go synced 2024-10-04 08:31:22 -06:00
go/src/pkg
Robert Griesemer a0e54aaffa go/printer, gofmt: 20 to 30% faster gofmt
Buffer intermediate output via a bytes.Buffer and thus avoid
calling through the entire Writer stack for every item printed.
There is more opportunity for improvements along the same lines.

Before (best of 3 runs):
- printer.BenchmarkPrint	      50	  47959760 ns/op
- time gofmt -l $GOROOT/src	      real	  0m11.517s

After (best of 3 runs):
- printer.BenchmarkPrint	      50	  32056640 ns/op (= -33%)
- time gofmt -l $GOROOT/src	      real	  0m9.070s       (= -21%)

R=r
CC=golang-dev
https://golang.org/cl/5432054
2011-11-22 15:12:34 -08:00
..
archive renaming_2: gofix -r go1pkgrename src/pkg/[a-l]* 2011-11-08 15:40:58 -08:00
bufio various: reduce overuse of os.EINVAL + others 2011-11-13 22:42:42 -05:00
builtin builtin: document delete 2011-11-09 10:49:41 -08:00
bytes various: avoid func compare 2011-11-13 22:57:19 -05:00
compress various: avoid func compare 2011-11-13 22:57:19 -05:00
container container/heap: document what Push and Pop do 2011-11-03 15:30:57 -04:00
crypto crypto/x509, crypto/tls: support PKCS#8 private keys. 2011-11-21 14:18:42 -05:00
debug all: sort imports 2011-11-02 15:54:16 -04:00
encoding encoding/xml: fix copy bug 2011-11-22 12:31:33 -05:00
errors errors: new package 2011-11-01 21:46:59 -04:00
exp sql: more driver docs & tests; no functional changes 2011-11-20 14:56:49 -05:00
expvar renaming_2: gofix -r go1pkgrename src/pkg/[a-l]* 2011-11-08 15:40:58 -08:00
flag src/pkg/[a-m]*: gofix -r error -force=error 2011-11-01 22:04:37 -04:00
fmt fmt: distinguish empty vs nil slice/map in %#v 2011-11-14 16:10:58 -05:00
go go/printer, gofmt: 20 to 30% faster gofmt 2011-11-22 15:12:34 -08:00
hash src/pkg/[a-m]*: gofix -r error -force=error 2011-11-01 22:04:37 -04:00
html html: on EOF in a comment, ignore final dashes (up to 2) 2011-11-23 09:26:37 +11:00
image various: reduce overuse of os.EINVAL + others 2011-11-13 22:42:42 -05:00
index/suffixarray renaming_2: gofix -r go1pkgrename src/pkg/[a-l]* 2011-11-08 15:40:58 -08:00
io net, io/ioutil: remove use of os.Time 2011-11-11 14:40:41 -05:00
log various: reduce overuse of os.EINVAL + others 2011-11-13 22:42:42 -05:00
math math: faster Cbrt 2011-11-21 09:56:07 -05:00
mime mime: remove ".wav" from tests (to fix build) 2011-11-18 13:24:17 +11:00
net allow direct conversion between string and named []byte, []rune 2011-11-22 12:30:02 -05:00
old renaming_3: gofix -r go1pkgrename src/pkg/[m-z]* 2011-11-08 15:41:54 -08:00
os os: make ReadAt comment clearer 2011-11-22 12:22:28 -05:00
patch src/pkg/[n-z]*: gofix -r error -force=error 2011-11-01 22:05:34 -04:00
path renaming_3: gofix -r go1pkgrename src/pkg/[m-z]* 2011-11-08 15:41:54 -08:00
reflect reflect: make Value an opaque struct 2011-11-16 19:18:25 -05:00
regexp regexp: fix doc comment 2011-11-09 13:46:54 -05:00
runtime runtime: add nanotime for Plan 9 2011-11-17 22:09:28 -05:00
sort renaming_3: gofix -r go1pkgrename src/pkg/[m-z]* 2011-11-08 15:41:54 -08:00
strconv strconv: make Ftoa faster 2011-11-15 12:17:25 -05:00
strings various: avoid func compare 2011-11-13 22:57:19 -05:00
sync allow copy of struct containing unexported fields 2011-11-15 12:20:59 -05:00
syscall syscall: fix for Plan 9 build 2011-11-21 09:55:15 -05:00
testing testing: print test results to standard output 2011-11-15 13:09:19 -05:00
text template/parse: rename Set to Parse 2011-11-18 13:10:15 -08:00
time syscall, os, time: fix Plan 9 build 2011-11-16 17:37:54 -05:00
unicode renaming_3: gofix -r go1pkgrename src/pkg/[m-z]* 2011-11-08 15:41:54 -08:00
unsafe unsafe: update doc 2011-08-31 17:59:35 -04:00
websocket html/template, net/http, websocket: fix import paths in comments 2011-11-18 18:33:44 -05:00
deps.bash renaming_1: hand-edited files for go 1 renaming 2011-11-08 15:38:47 -08:00
Makefile exp/gui: delete exp/gui and exp/gui/x11. They are moving to 2011-11-20 21:56:17 +11:00