1
0
mirror of https://github.com/golang/go synced 2024-11-19 18:34:43 -07:00
go/src/pkg/bufio
Brad Fitzpatrick b00e4770d9 bufio: in Reader.WriteTo, try to use target's ReaderFrom
This is the simple half of https://golang.org/cl/53560043/ with
a new benchmark. pongad is in the C+A files already.

benchmark                         old ns/op     new ns/op     delta
BenchmarkReaderWriteToOptimal     2054          825           -59.83%

Update #6373

LGTM=iant, gri
R=golang-codereviews, iant, gri
CC=golang-codereviews
https://golang.org/cl/69220046
2014-02-27 10:48:36 -08:00
..
bufio_test.go bufio: in Reader.WriteTo, try to use target's ReaderFrom 2014-02-27 10:48:36 -08:00
bufio.go bufio: in Reader.WriteTo, try to use target's ReaderFrom 2014-02-27 10:48:36 -08:00
example_test.go bufio: add Writer example 2013-08-12 13:03:50 +10:00
export_test.go bufio: new Scanner interface 2013-02-20 12:14:31 -08:00
scan_test.go all: use {bytes,strings}.NewReader instead of bytes.Buffers 2014-01-27 11:05:01 -08:00
scan.go unicode: upgrade to Unicode 6.3.0 2014-02-18 20:12:59 +01:00