Skip to content

Fix performance of state dump process #2070

Closed
@ilblackdragon

Description

Currently state dump on TestNet can take up to 1 hour for only ~50MB of state:

  • One reason is Json. We should use a binary format.
  • Another reason is usage of TrieIterator. This can be replace it by just iterating over all values in the STATE column and checking if they are Leafs of the Trie.

Note, let's add this directly to master as this is required to actually upgrade our live network.

Metadata

Assignees

Labels

A-storageArea: storage and databasesA-upgradabilityArea: Anything related to config and binary upgradabilityC-housekeepingCategory: Refactoring, cleanups, code qualityP-criticalPriority: critical

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions