Revision aacc71dc2956c5f8bc5b3bdced454691fa489266 authored by Alexander Bezobchuk on 31 July 2019, 15:01:55 UTC, committed by Jack Zampolin on 01 August 2019, 17:28:32 UTC
- Replace the previous intersect call, which was called at each query condition, with a map intersection. - Replace fmt.Sprintf with string() closes: #3076 Benchmarks ``` Old goos: darwin goarch: amd64 pkg: github.com/tendermint/tendermint/state/txindex/kv BenchmarkTxSearch-4 200 103641206 ns/op 7998416 B/op 71171 allocs/op PASS ok github.com/tendermint/tendermint/state/txindex/kv 26.019s New goos: darwin goarch: amd64 pkg: github.com/tendermint/tendermint/state/txindex/kv BenchmarkTxSearch-4 1000 38615024 ns/op 13515226 B/op 166460 allocs/op PASS ok github.com/tendermint/tendermint/state/txindex/kv 53.618s ``` ~62% performance improvement Commits: * Refactor tx search * Add pending changelog entry * Add tx search benchmarking * remove intermediate hashes list also reset timer in BenchmarkTxSearch and fix other benchmark * fix import * Add test cases * Fix searching * Replace fmt.Sprintf with string * Update state/txindex/kv/kv.go Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com> * Rename params * Cleanup * Check error in benchmarks
1 parent d56fb6e
File | Mode | Size |
---|---|---|
codec.go | -rw-r--r-- | 213 bytes |
store.go | -rw-r--r-- | 7.5 KB |
store_test.go | -rw-r--r-- | 12.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...