lucet
lucet copied to clipboard
Lucetc parallel compilation
Is there a plan to support parallel compilation with lucetc? Would it be a helpful contribution? It seems rayon could be added here, similarly to how it's used in wasmtime. Although I might be missing some lucet-specific complexity.
Hi, thanks for opening this issue. We've been aware of this for a while and haven't made it a priority. Lucet requires a little more work than wasmtime to use rayon because we use the cranelift-module
crate to emit code, and that interface is not Send/Sync. But, there's not particularly good reason it shouldn't be.
Lucet is the only user of the cranelift-module interfaces that I'm aware of, and I can code review any PRs to that segment of the cranelift tree.
We'd be enthusiastic about accepting this as a contribution. Please let us know if there's any questions or anything we can do to get you unblocked.