leostera / reactor

🚀 Native Actors for Reason and OCaml
70 stars 5 forks source link

Async tasks #12

Closed baransu closed 5 years ago

baransu commented 5 years ago

My attempt to resolve #8

Right now Lwt_engine.iter is called on every worker not taking into account if we have pending promises or not. That's possible room for improvement. We could mark deferred workers and run Lwt_engine.iter only on them. Everything depends on the benchmark we create to decide if it's fast enough.

Thanks, @ostera for all the help!