1
0
Fork 0
mirror of https://github.com/vbatts/merkle.git synced 2024-11-13 18:48:37 +00:00
Commit graph

11 commits

Author SHA1 Message Date
499faa7234 stream: write error to stderr instead 2015-08-16 19:12:32 -04:00
fa4337c370 stream: reduce allocs in Reset()
improvement:
```
benchmark               old ns/op     new ns/op     delta
BenchmarkHash8Bytes     21137         12201         -42.28%
BenchmarkHash1K         27235         14842         -45.50%
BenchmarkHash8K         38630         29034         -24.84%

benchmark               old MB/s     new MB/s     speedup
BenchmarkHash8Bytes     0.38         0.66         1.74x
BenchmarkHash1K         37.60        68.99        1.83x
BenchmarkHash8K         212.06       282.15       1.33x

benchmark               old allocs     new allocs     delta
BenchmarkHash8Bytes     10             9              -10.00%
BenchmarkHash1K         10             9              -10.00%
BenchmarkHash8K         9              8              -11.11%

benchmark               old bytes     new bytes     delta
BenchmarkHash8Bytes     16712         8520          -49.02%
BenchmarkHash1K         17728         9536          -46.21%
BenchmarkHash8K         16704         8512          -49.04%
```
2015-08-16 18:59:09 -04:00
6b706eb39f stream: fix for large chunks
io.Copy() uses a 32*1024 byte chunk size. When a blocksize larger than
this was used, the copy was out of bounds.

https://gist.github.com/philips/b90ed91068930fe85bed

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-04-09 14:12:48 -04:00
bedd7a10ff stream: tests and fix for Reset() 2015-03-31 10:55:25 -04:00
558c5d610d .: golint 2015-03-30 15:20:50 -04:00
3cc77c8073 stream: give access to tree aspects 2015-03-30 15:19:46 -04:00
1959058d6a stream.go: Finishing up Sum() 2015-03-30 15:02:53 -04:00
257ed6dfad stream: Write() is mostly finished 2015-03-26 18:48:33 -04:00
68f4bcde5d stream: first chunk made into a node 2015-03-26 16:46:02 -04:00
fd362c6aa5 progress on a streaming interface 2015-03-25 17:28:17 -04:00
949cec0dce stream.go: starting an interfacing for streaming sums 2015-03-19 17:47:43 -04:00