ocaml-multicore / picos

Interoperable effects based concurrency
https://ocaml-multicore.github.io/picos/doc/picos/index.html
ISC License
86 stars 3 forks source link

Tweak `Finally.(let^)` for performance #197

Closed polytypic closed 2 months ago

polytypic commented 2 months ago

This moves allocations to the same block (so the compiler can merge them), reduces total allocations by one word, and avoids an unnecessary Atomic.set.