av/ring
Dan Kortschak b8d804e4ec ring: add tests/benchmark for WriterTo path and fix SIGSEGV error
Also add a call to ioutil.ReadAll to mimic the use in revid. There is
not a great deal of difference on the RPi3 in terms of throughput,
though the allocations obviously increase.

```
$ go test -run ^$ -bench . -benchmem -benchtime 30s
goos: linux
goarch: arm
BenchmarkRoundTrip-4           	    2000    20184818 ns/op    1.49 MB/s    104646 B/op    4 allocs/op
BenchmarkRoundTripWriterTo-4   	    2000    20175948 ns/op    1.49 MB/s       175 B/op    3 allocs/op
PASS
```
2018-06-06 17:53:15 +09:30
..
README.md ring: new package replacement for ringbuffer 2018-06-06 17:53:15 +09:30
ring.go ring: add tests/benchmark for WriterTo path and fix SIGSEGV error 2018-06-06 17:53:15 +09:30
ring_test.go ring: add tests/benchmark for WriterTo path and fix SIGSEGV error 2018-06-06 17:53:15 +09:30

README.md

Readme

Package ring provides a ring buffer of io.ReadWriters.

Author

Dan Kortschak dan@ausocean.org

License

ring is Copyright (C) 2017 the Australian Ocean Lab (AusOcean)

It is free software: you can redistribute it and/or modify them under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License or more details.

You should have received a copy of the GNU General Public License along with revid in gpl.txt. If not, see GNU licenses.