neo-go/pkg/core/storage
Roman Khimov 4758de71ec storage: optimize (*MemCachedStore).Persist for memory-backed ps
Most of the time it's persisted into the MemoryStore or MemCachedStore, when
that's the case there is no real need to go through the Batch mechanism as it
incurs multiple copies of the data.

Importing 1.5M mainnet blocks with verification turned off, before:
real    12m39,484s
user    20m48,300s
sys     2m25,022s

After:
real    11m15,053s
user    18m2,755s
sys     2m4,162s

So it's around 10% improvement which looks good enough.
2020-03-28 17:21:50 +03:00
..
boltdb_store.go go.mod: update boltdb to v1.3.4 2020-03-25 17:07:54 +03:00
boltdb_store_test.go storage: redo DB testing 2019-10-15 12:56:25 +03:00
leveldb_store.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
leveldb_store_test.go storage: redo DB testing 2019-10-15 12:56:25 +03:00
memcached_store.go storage: optimize (*MemCachedStore).Persist for memory-backed ps 2020-03-28 17:21:50 +03:00
memcached_store_test.go storage: optimize (*MemCachedStore).Persist for memory-backed ps 2020-03-28 17:21:50 +03:00
memory_store.go storage: add locking into (*MemoryStore).Seek 2020-02-24 17:51:50 +03:00
memory_store_test.go core: move write caching layer into MemCacheStore 2019-10-16 17:33:45 +03:00
redis_store.go storage: simplify MemoryBatch 2019-10-15 12:56:25 +03:00
redis_store_test.go storage: redo DB testing 2019-10-15 12:56:25 +03:00
store.go core: store NEP5 balances separately 2020-03-12 12:58:28 +03:00
store_config.go storage: add boltDB support 2019-09-14 10:28:43 +03:00
store_test.go Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
storeandbatch_test.go core: move write caching layer into MemCacheStore 2019-10-16 17:33:45 +03:00