1
0
Fork 0
mirror of https://github.com/vbatts/merkle.git synced 2024-12-03 11:35:40 +00:00
Golang Merkle Tree Implementation. With hash.Hash interface for streaming support
Find a file
Vincent Batts 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
.travis.yml .: add travis info 2015-03-30 15:32:35 -04:00
block.go .: drawing some from bittorrent 2015-03-19 17:20:51 -04:00
block_test.go .: drawing some from bittorrent 2015-03-19 17:20:51 -04:00
doc.go .: drawing some from bittorrent 2015-03-19 17:20:51 -04:00
LICENSE .: a bit of presentation and legal 2015-03-30 15:25:38 -04:00
node.go stream: first chunk made into a node 2015-03-26 16:46:02 -04:00
node_test.go progress on a streaming interface 2015-03-25 17:28:17 -04:00
README.md README.md: whats next 2015-03-30 15:30:38 -04:00
stream.go stream: reduce allocs in Reset() 2015-08-16 18:59:09 -04:00
stream_test.go stream_test: shave 2sec off tests 2015-08-16 18:42:40 -04:00
tree.go .: drawing some from bittorrent 2015-03-19 17:20:51 -04:00

merkle

Build Status

Golang Merkle Tree Implementation, with hash.Hash interface for streaming support.

Docs

What's Next?

  • More tests and review
  • Streaming HashTreeer type, that can validate provided Nodes, for streaming validation

License

See LICENSE