-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
The loop in compile_module in lib/environ/src/cranelift.rs iterates over all the functions in a module, compiling one at a time. Cranelift is designed to compile each function independently (and we've demonstrated it doing so in SpiderMonkey), so this loop ought to be relatively straightforward to parallelize. In the Rust ecosystem, the Rayon framework is the obvious choice for simple parallelization of loops like this. The main work will be arranging places to put the outputs (currently the functions and relocations vector elements).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels