neoneo-go/pkg/core
Roman Khimov 8c902a7223 core: cache UnspentCoins in cachedDao
1.5M block import time (VerifyBlocks disabled) on AMD Ryzen 5 1600/16GB/HDD,
before:
real    159m16.551s
user    69m58.279s
sys     7m34.334s

after:
real    139m41.836s
user    67m12.477s
sys     6m19.420s

12% which is even a bit more than could be expected from inputs analysis (that
has around 10% cache hits for a block-wide cache), worth doing.
2020-03-11 12:40:02 +03:00
..
block *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
mempool *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
state core/state: merge spent and unspent coins state, use it to store more things 2020-03-11 12:40:02 +03:00
storage core: track NEP5 transfers 2020-03-05 18:22:40 +03:00
test_data Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
transaction Merge pull request #706 from nspcc-dev/feature/transfer 2020-03-05 12:28:01 +03:00
blockchain.go core/state: merge spent and unspent coins state, use it to store more things 2020-03-11 12:40:02 +03:00
blockchain_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
blockchainer.go core: move (un)SpentCoin structs into the state package 2020-03-11 12:22:52 +03:00
cacheddao.go core: cache UnspentCoins in cachedDao 2020-03-11 12:40:02 +03:00
cacheddao_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
dao.go core/state: merge spent and unspent coins state, use it to store more things 2020-03-11 12:40:02 +03:00
dao_test.go core/state: merge spent and unspent coins state, use it to store more things 2020-03-11 12:40:02 +03:00
gas_price.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
gas_price_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
header_hash_list.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
helper_test.go rpc: implement submitblock RPC 2020-03-06 12:03:08 +03:00
interop_neo.go core: fix wrong endian used in interop functions 2020-03-05 19:44:09 +03:00
interop_neo_test.go core: fix wrong endian used in interop functions 2020-03-05 19:44:09 +03:00
interop_system.go core: fix wrong endian used in interop functions 2020-03-05 19:44:09 +03:00
interops.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
interops_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
prometheus.go core: refactor out MemPool 2020-01-16 10:16:24 +03:00
spent_coin.go core: move (un)SpentCoin structs into the state package 2020-03-11 12:22:52 +03:00
uint32.go *: goimports 2019-12-17 14:51:28 +03:00
util.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
util_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00