mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 22:47:56 +00:00
Make wasm runtime cache size configurable (#10177)
* Make wasm runtime cache size configurable * apply review comments * remove VersionedRuntimeValue * fix compilation * VersionedRuntime: replace clone by Arc * fmt * fix warnings * fix tests compilation * fmt
This commit is contained in:
@@ -130,6 +130,7 @@ fn call_in_wasm<E: Externalities>(
|
||||
HostFunctions::host_functions(),
|
||||
8,
|
||||
None,
|
||||
2,
|
||||
);
|
||||
executor.uncached_call(
|
||||
RuntimeBlob::uncompress_if_needed(&wasm_binary_unwrap()[..]).unwrap(),
|
||||
@@ -480,6 +481,7 @@ fn should_trap_when_heap_exhausted(wasm_method: WasmExecutionMethod) {
|
||||
HostFunctions::host_functions(),
|
||||
8,
|
||||
None,
|
||||
2,
|
||||
);
|
||||
|
||||
let err = executor
|
||||
@@ -593,6 +595,7 @@ fn parallel_execution(wasm_method: WasmExecutionMethod) {
|
||||
HostFunctions::host_functions(),
|
||||
8,
|
||||
None,
|
||||
2,
|
||||
));
|
||||
let threads: Vec<_> = (0..8)
|
||||
.map(|_| {
|
||||
|
||||
Reference in New Issue
Block a user