Skip to content

Commit 2d8e64d

Browse files
committed
perf(itkwasm): additional wasmtime config options
1 parent 72af913 commit 2d8e64d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/python/itkwasm/itkwasm/pipeline.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,13 @@ def __init__(self, pipeline: Union[str, Path, bytes]):
165165
self.config = Config()
166166
self.config.wasm_bulk_memory = True
167167
self.config.wasm_simd = True
168+
self.config.wasm_relaxed_simd = True
169+
self.config.wasm_relaxed_simd_deterministic = True
168170
self.config.wasm_memory64 = True
171+
self.config.cranelift_opt_level = "speed"
172+
self.config.strategy = "cranelift"
173+
self.config.cache = True
174+
self.config.parallel_compilation = True
169175
self.engine = Engine(self.config)
170176
if isinstance(pipeline, bytes):
171177
wasm_bytes = pipeline

0 commit comments

Comments
 (0)