1
0
mirror of https://github.com/golang/go synced 2024-11-24 07:40:17 -07:00
go/src/bufio
andrius4669 a21ae28f39 bufio: avoid rescanning buffer multiple times in ReadSlice
When existing data in buffer does not have delimiter,
and new data is added with b.fill(), continue search from
previous point instead of starting from beginning.

Change-Id: Id78332afe2b0281b4a3c86bd1ffe9449cfea7848
GitHub-Last-Rev: 08e7d2f501
GitHub-Pull-Request: golang/go#25441
Reviewed-on: https://go-review.googlesource.com/113535
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-08-22 17:06:28 +00:00
..
bufio_test.go
bufio.go bufio: avoid rescanning buffer multiple times in ReadSlice 2018-08-22 17:06:28 +00:00
example_test.go
export_test.go
scan_test.go
scan.go