Prevent double allocation of the payload when calling sp_io::storage::get (#11523)

* Expose allocation stats in `FreeingBumpHeapAllocator`

* Return allocation stats when calling into the runtime

* Bump `parity-scale-codec` to 3.1.3 (fork)

* Prevent double allocation of the payload when calling `sp_io::storage::get`

* Fix tests

* Remove unnecessary `mut`

* Enable the `bytes` feature for `parity-scale-codec` in `sp-runtime-interface`

* Update client/allocator/src/freeing_bump.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Bump `parity-scale-codec` to 3.1.3

* Fix some of the UI tests

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Koute
2022-07-29 16:46:15 +09:00
committed by GitHub
parent f44e4b3d48
commit c4b607d4c9
18 changed files with 284 additions and 92 deletions
@@ -14,12 +14,13 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
bytes = { version = "1.1.0", default-features = false }
sp-wasm-interface = { version = "6.0.0", path = "../wasm-interface", default-features = false }
sp-std = { version = "4.0.0", default-features = false, path = "../std" }
sp-tracing = { version = "5.0.0", default-features = false, path = "../tracing" }
sp-runtime-interface-proc-macro = { version = "5.0.0", path = "proc-macro" }
sp-externalities = { version = "0.12.0", default-features = false, path = "../externalities" }
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["bytes"] }
static_assertions = "1.0.0"
primitive-types = { version = "0.11.1", default-features = false }
sp-storage = { version = "6.0.0", default-features = false, path = "../storage" }