1
0
mirror of https://github.com/golang/go synced 2024-11-22 17:54:45 -07:00
The Go programming language
Go to file
Brad Fitzpatrick b25a53acd7 bufio: make Reader buffer transient
Share garbage between different bufio Readers. When a Reader
has zero buffered data, put its buffer into a pool.

This acknowledges that most bufio.Readers eventually get
read to completion, and their buffers are then no longer
needed.

benchmark               old ns/op    new ns/op    delta
BenchmarkReaderEmpty         2993         1058  -64.65%

benchmark              old allocs   new allocs    delta
BenchmarkReaderEmpty            3            2  -33.33%

benchmark               old bytes    new bytes    delta
BenchmarkReaderEmpty         4278          133  -96.89%

Update #5100

R=r
CC=adg, dvyukov, gobot, golang-dev, rogpeppe
https://golang.org/cl/8819049
2013-05-17 15:16:06 -07:00
api api: add go1.1.txt; update cmd/api to use it 2013-05-06 17:25:09 -07:00
doc doc/go_spec: fix typos 2013-05-15 03:50:27 +08:00
include include/plan9/libc.h: fix Plan 9 build 2013-03-30 19:05:00 +08:00
lib lib/time: update to IANA 2013c 2013-04-22 16:28:42 -07:00
misc misc/cgo/test: deflake TestParallelSleep once more 2013-05-18 02:55:44 +08:00
src bufio: make Reader buffer transient 2013-05-17 15:16:06 -07:00
test cmd/gc: repair make(T) in export data for inlining. 2013-05-16 09:01:43 +02:00
.hgignore
.hgtags tag go1.1 2013-05-13 13:04:08 -07:00
AUTHORS A+C: Alberto García Hierro (individual CLA) 2013-05-14 15:31:46 -07:00
CONTRIBUTORS A+C: Alberto García Hierro (individual CLA) 2013-05-14 15:31:46 -07:00
favicon.ico
LICENSE
PATENTS
README
robots.txt

This is the source code repository for the Go programming language.  

For documentation about how to install and use Go,
visit http://golang.org/ or load doc/install.html in your web browser.

After installing Go, you can view a nicely formatted
doc/install.html by running godoc --http=:6060
and then visiting http://localhost:6060/doc/install.html.

Unless otherwise noted, the Go source files are distributed
under the BSD-style license found in the LICENSE file.

--

Binary Distribution Notes

If you have just untarred a binary Go distribution, you need to set
the environment variable $GOROOT to the full path of the go
directory (the one containing this README).  You can omit the
variable if you unpack it into /usr/local/go, or if you rebuild
from sources by running all.bash (see doc/install.html).
You should also add the Go binary directory $GOROOT/bin
to your shell's path.

For example, if you extracted the tar file into $HOME/go, you might
put the following in your .profile:

    export GOROOT=$HOME/go
    export PATH=$PATH:$GOROOT/bin

See doc/install.html for more details.