ocaml-multicore / domainslib

Parallel Programming over Domains
ISC License
171 stars 30 forks source link

Small optim to work stealing #96

Closed art-w closed 1 year ago

art-w commented 1 year ago

A very small optimization to the work stealing algorithm: The previous version was allocating too many Ws_deque and trying to steal from them (including the always-empty ones). In any case, the code should be a tiny bit easier to read :)

Sudha247 commented 1 year ago

Thanks for your PRs @art-w ! :)

I'll get to reviewing them in a bit.