Speed up storage iteration from within the runtime (#13479)

* Speed up storage iteration from within the runtime

* Move the cached iterator into an `Option`

* Use `RefCell` in no_std

* Simplify the code slightly

* Use `Option::replace`

* Update doc comment for `next_storage_key_slow`
This commit is contained in:
Koute authored and GitHub committed 2023-03-01 08:58:18 +00:00
1 parent 20bf3c938e
commit 55263fa2a1
9 files changed
+118 -16

No files matched your search

@@ -21,7 +21,7 @@ log = { version = "0.4.17", default-features = false }
sp-core = { path = "../../../../primitives/core" }
sp-state-machine = { path = "../../../../primitives/state-machine" }
sp-trie = { path = "../../../../primitives/trie" }
trie-db = "0.25.1"
trie-db = "0.26.0"
jsonrpsee = { version = "0.16.2", features = ["client-core", "server", "macros"] }