Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Cache runtime code #799

Closed
arkpar opened this issue Sep 25, 2018 · 2 comments
Closed

Cache runtime code #799

arkpar opened this issue Sep 25, 2018 · 2 comments
Labels
I9-optimisation An enhancement to provide better overall performance in terms of time-to-completion for a task.
Milestone

Comments

@arkpar
Copy link
Member

arkpar commented Sep 25, 2018

Currently code is hashed with blake2 on every call to runtime, which happens multiple times for each block import/production. Profiling shows it takes a bulk of execution time. Code and version should be cached and cache should be persistent across block states and only updated when code change event is detected.

@arkpar arkpar added the I9-optimisation An enhancement to provide better overall performance in terms of time-to-completion for a task. label Sep 25, 2018
@gavofyork gavofyork added this to the As-and-when milestone Sep 26, 2018
@bkchr
Copy link
Member

bkchr commented Feb 25, 2020

I think we can close this?

@arkpar
Copy link
Member Author

arkpar commented Feb 25, 2020

Right, state cache also caches storage value hashes.

@arkpar arkpar closed this as completed Feb 25, 2020
liuchengxu pushed a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
genesis runtime wasm

notice, do not copy wasm file into cli/src for develop!
liuchengxu added a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
* Introduce Delta

* Add VoteWeightBase

* Upper bound of intention (paritytech#796)

* Add UpperBoundFactor

Close paritytech#672

* Check if the intention is nominating itself and add tests

* Add set_upper_bound_factor and build wasm

* Add LastRenominationOf (paritytech#794)

* Add LastRenominationOf

Close paritytech#692

* Fix renominate tests

* Build wasm

* genesis bitcoin (paritytech#799)

genesis runtime wasm

notice, do not copy wasm file into cli/src for develop!

* Add MaxUnbondEntriesPerIntention (paritytech#800)

* Add MaxUnbondEntriesPerIntention

Close paritytech#681

* Add test

* Nits

* Nit

* Pass tests

* Replace settle_amount() with settle_and_set_amount()

* Nit

* Build wasm

* Rename set_new_state to set_state

* Rebuild wasm
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I9-optimisation An enhancement to provide better overall performance in terms of time-to-completion for a task.
Projects
None yet
Development

No branches or pull requests

3 participants