mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Persistent optimization (#382)
* State serialization consuming less RAM * Move large-boc-serializer to crypto/vm, refactor code Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
c04eb8e4f3
commit
89b8717cf8
21 changed files with 665 additions and 157 deletions
|
@ -42,6 +42,7 @@ class AsyncStateSerializer : public td::actor::Actor {
|
|||
|
||||
td::uint32 next_idx_ = 0;
|
||||
|
||||
std::shared_ptr<vm::CellDbReader> cell_db_reader_ = nullptr;
|
||||
BlockHandle masterchain_handle_;
|
||||
bool have_masterchain_state_ = false;
|
||||
|
||||
|
@ -70,6 +71,7 @@ class AsyncStateSerializer : public td::actor::Actor {
|
|||
|
||||
void next_iteration();
|
||||
void got_top_masterchain_handle(BlockIdExt block_id);
|
||||
void got_cell_db_reader(std::shared_ptr<vm::CellDbReader> cell_db_reader);
|
||||
void got_masterchain_handle(BlockHandle handle_);
|
||||
void got_masterchain_state(td::Ref<MasterchainState> state);
|
||||
void stored_masterchain_state();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue