mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 03:56:34 +00:00
4758de71ec
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. |
||
---|---|---|
.. | ||
boltdb_store.go | ||
boltdb_store_test.go | ||
leveldb_store.go | ||
leveldb_store_test.go | ||
memcached_store.go | ||
memcached_store_test.go | ||
memory_store.go | ||
memory_store_test.go | ||
redis_store.go | ||
redis_store_test.go | ||
store.go | ||
store_config.go | ||
store_test.go | ||
storeandbatch_test.go |