Default compiler backend #161
arctic-hen7
started this conversation in
Polls
Replies: 1 comment 4 replies
-
Maybe @bjorn3 has some input on this? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's well-known among Perseus users that our compile times aren't great, which is mainly due to the Rust compiler being fairly slow. However, there is a project that can help! The linked repo provides a lightning-fast compiler backend based on Cranelift, rather than LLVM, which has, in my testing, cut compile times in development by 75%.
I'm currently (#160) making significant improvements to the CLI, one of which is installing external tool dependencies (e.g.
wasm-opt
) automatically behind the scenes (local to the project though), and I want to download that Cranelift backend too, and then provide the user with the option to use it in development. Note that this backend should never be used in production, since its main purpose is to minimise compile-times (we'll stick with the default compiler backend for release builds). The question now is about the default behavior.6 votes ·
Beta Was this translation helpful? Give feedback.
All reactions