concordium-base icon indicating copy to clipboard operation
concordium-base copied to clipboard

Load contract state lazily in cargo-concordium

Open abizjak opened this issue 2 years ago • 0 comments

Task description

Currently cargo-concordium loads the entire contract state into memory before executing. This is probably good enough for most practical uses, but it is nevertheless wasteful.

Contract state supports lazy loading of state. Only the state root needs to be loaded upfront, the rest on demand.

This task is to revise how cargo-concordium stores and loads contract state. Essentially the change needs to be made so that state is not "serialized" and "deserialized", but instead "store_update" and "load" are used, with a backing store.

abizjak avatar Mar 21 '22 16:03 abizjak