You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> lldb wasmtime -- -D debug-info -O opt-level=0 main.wasm
> (lldb) b main
> (lldb) c ; Until you reach WASM's 'main'
Observe four (JIT) modules (for each core module in a component). All of them have the exact same content.
> (lldb) image list
Also observe that LLDB needed to index the same DWARF info four times. This means that "startup with debugging" is 4x slower if we exclude the time to compile code and transform DWARF.
Reproduction:
(JIT)
modules (for each core module in a component). All of them have the exact same content.The bug is somewhere around here:
wasmtime/crates/wasmtime/src/runtime/instantiate.rs
Lines 72 to 79 in 460a4c0
AFAICT, with components, the generated image is a shared (among core modules) resource, so each
Module::from_parts_raw
call here:wasmtime/crates/wasmtime/src/runtime/component/component.rs
Lines 408 to 414 in 460a4c0
Registers the same image.
The text was updated successfully, but these errors were encountered: