1
0
mirror of https://github.com/golang/go synced 2024-11-06 08:26:12 -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: add Reader.Size and Writer.Size accessors 2017-11-02 17:17:44 +00:00
bufio.go bufio: avoid rescanning buffer multiple times in ReadSlice 2018-08-22 17:06:28 +00:00
example_test.go bufio: fix scanning with a final empty token. 2015-09-25 21:46:13 +00:00
export_test.go bufio: add Reader.Size and Writer.Size accessors 2017-11-02 17:17:44 +00:00
scan_test.go all: remove redundant returns 2017-04-19 20:03:51 +00:00
scan.go bufio: clarify SplitFunc docs for nil token 2018-06-13 21:43:06 +00:00