Stream: wasmtime

Topic: Wasmtime debug builds slow


view this post on Zulip Léo Gaspard (Jan 17 2021 at 05:49):

Hey!
In the process of developing with wasmtime, I've noticed that my debug binary takes 20s to compile a wasm blob, while the same code in release mode takes something like 0.3s. However, building debug builds takes 20s and release builds something like 5min.
Hence a question: do you know if it's possible to build a debug build of my binary, but with a release build of wasmtime that'd get cached while I iterate on my code? It'd much decrease my time to test :)
I've already tried just disabling debug assertions, hoping that was it, but it turns out it doesn't significantly help

view this post on Zulip Alex Crichton (Jan 19 2021 at 15:11):

Cargo profile selectiton might help you optimizing wasmtime in debug mode perhaps?

view this post on Zulip Léo Gaspard (Jan 20 2021 at 14:35):

Looks like this is what I was looking for indeed, thank you! :D


Last updated: Nov 22 2024 at 16:03 UTC