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

srml-contract: Reuse instrumented code #1040

Closed
pepyakin opened this issue Oct 30, 2018 · 0 comments · Fixed by #1358
Closed

srml-contract: Reuse instrumented code #1040

pepyakin opened this issue Oct 30, 2018 · 0 comments · Fixed by #1358
Assignees
Labels
I9-optimisation An enhancement to provide better overall performance in terms of time-to-completion for a task.
Milestone

Comments

@pepyakin
Copy link
Contributor

Before execution smart-contract code must be instrumented (e.g. with gas metering). Now, it is performed each time before execution of smart-contract but this is wasteful since the result of instrumentation is almost always the same. The caveat is that instrumentation depends on gas schedule (which can be changed by governance procedures), and we have to make sure that the instrumented code was created with a matching gas schedule.

@pepyakin pepyakin added the I9-optimisation An enhancement to provide better overall performance in terms of time-to-completion for a task. label Oct 30, 2018
@pepyakin pepyakin added this to the As-and-when milestone Oct 30, 2018
@pepyakin pepyakin self-assigned this Oct 30, 2018
lamafab pushed a commit to lamafab/substrate that referenced this issue Jun 16, 2020
* Companion PR for Substrate paritytech#5375

* fix compilation

* Update rpc/Cargo.toml

* update substrate

Co-authored-by: André Silva <andre.beat@gmail.com>
Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org>
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

Successfully merging a pull request may close this issue.

1 participant