ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
557 stars 72 forks source link

Fiber.all: use the parent fiber #665

Closed talex5 closed 9 months ago

talex5 commented 9 months ago

Previously, it created one fiber for each job and then the parent fiber just waited. It's a little more efficient to have the parent fiber run the last job itself, and also reduces clutter in the traces.

This also affects Fiber.both, which uses all internally.