4 ms·
While it appears that cg_clif is faster to compile, does it provide any performance benefit compared to cg_llvm? Are the compiled binaries as fast as llvm compi
by crad 6y ago
While it appears that cg_clif is faster to compile, does it provide any performance benefit compared to cg_llvm? Are the compiled binaries as fast as llvm compiled binaries? If not is the use-case for development purposes only?
- __s 6y agoCorrect, cranelift is meant for faster development build cycles https://github.com/bytecodealliance/wasmtime/blob/da02c913cc5a71de955b071a05bc157de39b20be/cranelift/rustc.md https://github.com/bytecodealliance/wasmtime/blob/da02c913cc...
- wscott 6y agoFrom the article, it is pretty clear that the resulting code is not as optimized as the LLVM backend. I didn't see any claims of how much slower it would be, but clearly that will vary greatly. Fast to compile is still really handy while developing.