ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
528 stars 67 forks source link

eio_linux: don't call submit immediately before wait #728

Closed talex5 closed 1 month ago

talex5 commented 1 month ago

It's quicker to do it in a single call.

Before (notice the thin yellow "suspend" after the main "submit" one): old

After: new

Zoomed in before: old

After: new

Not sure how much this matters for speed, but it makes the traces look cleaner anyway.