Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate Cranelift's new incremental compilation cache #33

Open
koute opened this issue Sep 21, 2022 · 0 comments
Open

Investigate Cranelift's new incremental compilation cache #33

koute opened this issue Sep 21, 2022 · 0 comments
Labels
I9-optimisation An enhancement to provide better overall performance in terms of time-to-completion for a task.

Comments

@koute
Copy link
Contributor

koute commented Sep 21, 2022

Most recent version of wasmtime has a new incremental compilation cache which might significantly improve our cold startup times; quoting the changelog:

An incremental compilation cache for Cranelift has been added which can be enabled with Config::enable_incremental_compilation, and this option is disabled by default for now. The incremental compilation cache has been measured to improve compile times for cold uncached modules as well due to some wasm modules having similar-enough functions internally.

Related issue where we see that cold startup time is a problem: paritytech/polkadot#5821

We should check whether this could help us, and if so how much exactly. A good way to do this might possibly be to e.g. take the last few runtime blobs used on something like Kusama, and then write a benchmark which just instantiates them one after another, and then just compare a run where this new incremental cache is disabled with a run where it is enabled and compare the total execution time and the instantiation latencies.

This could also be helpful for PVFs; I'm guessing we could probably benchmark that in a similar way?

cc @pepyakin

@koute koute added the I9-optimisation An enhancement to provide better overall performance in terms of time-to-completion for a task. label Sep 21, 2022
@the-right-joyce the-right-joyce transferred this issue from paritytech/substrate Aug 24, 2023
liuchengxu added a commit to subcoin-project/polkadot-sdk that referenced this issue Sep 20, 2024
* Build chain spec for bitcoin mainnet

```
./target/release/subcoin build-spec --chain=bitcoin-mainnet --disable-default-bootnode --raw > chain-spec-raw-bitcoin-mainnet.json
```

* Nits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I9-optimisation An enhancement to provide better overall performance in terms of time-to-completion for a task.
Projects
Status: backlog
Development

No branches or pull requests

1 participant