ullage icon indicating copy to clipboard operation
ullage copied to clipboard

Parallelise Compilation with Rayon

Open iwillspeak opened this issue 6 years ago • 3 comments

Update the compilation transformation and emit code to work on chunks (probably functions) in parallel. The Rayon crate should provide a good framework for this.

iwillspeak avatar Nov 01 '18 09:11 iwillspeak

perhaps Actix?

naturallymitchell avatar Jan 24 '19 07:01 naturallymitchell

Interesting idea. My gut reaction was an immediate “no”, but the more I think about it actor based compilation might be an interesting thing to mess about with.

Tempted to have a mess about with that idea on a stand-alone project first.

iwillspeak avatar Jan 24 '19 09:01 iwillspeak

I guess it could work similar to the query-based compilation model fron Rust. You’d have to be carful that you don’t contend around single-threaded access to actors though.

iwillspeak avatar Jan 24 '19 09:01 iwillspeak