neo-go/pkg/core/dao
Roman Khimov 1c38b45074 core: don't always store all hashes in memory
We're paging these hashes, so we need a previous full page and a current one
plus some cache for various requests. Storing 1M of hashes is 32M of memory
and it grows quickly. It also seriously affects node startup time, most of
what it's doing is reading these hashes, the longer the chain the more time it
needs to do that.

Notice that this doesn't change the underlying DB scheme in any way.
2022-11-25 14:30:51 +03:00
..
dao.go core: don't always store all hashes in memory 2022-11-25 14:30:51 +03:00
dao_test.go storage: drop (KeyPrefix).Bytes() API 2022-02-18 15:19:57 +03:00