mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 09:51:02 +00:00
Switch to pooling copy-on-write instantiation strategy for WASM (companion for Substrate#11232) (#5337)
* Switch to pooling copy-on-write instantiation strategy for WASM
* Fix compilation of `polkadot-test-service`
* Update comments
* Move `max_memory_size` to `Semantics`
* Rename `WasmInstantiationStrategy` to `WasmtimeInstantiationStrategy`
* Update a safety comment
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -265,15 +265,13 @@ pub fn worker_entrypoint(socket_path: &str) {
|
||||
// worker is only required to send an empty `Ok` to the pool
|
||||
// to indicate the success.
|
||||
|
||||
let artifact_bytes = compiled_artifact.encode();
|
||||
|
||||
gum::debug!(
|
||||
target: LOG_TARGET,
|
||||
worker_pid = %std::process::id(),
|
||||
"worker: writing artifact to {}",
|
||||
dest.display(),
|
||||
);
|
||||
async_std::fs::write(&dest, &artifact_bytes).await?;
|
||||
async_std::fs::write(&dest, &compiled_artifact).await?;
|
||||
|
||||
Ok(())
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user