dfinity / cdk-rs

Rust canister development kit for the Internet Computer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Huge heap memory increase (10x) when calling ic_cdk::storage::stable_restore()

alexeychirkov opened this issue · comments

When calling ic_cdk::storage::stable_restore() there is obsolete heap memory increase (10x times more than stable memory size).

This always happens in ic-cdk/src/storage.rs line 76 because there is an error returned with dump of deserialiser (candid/src/de.rs line 104)

This issue does not depend on restored data structure.