Folks at Tarides have already experimented with porting Pyre's multi-processing sharedmem library into relying on OCaml5's domain-based multi-threading mechanism.
I'm creating this PR so we have an easy way of importing the changes into Meta's internal repository. Please do not accept this change -- it's likely to require some cleanup work. But we should start experimenting & benchmarking with it and see how much perf gain we could reap (and hopefully report the numbers back to the original author).
Folks at Tarides have already experimented with porting Pyre's multi-processing sharedmem library into relying on OCaml5's domain-based multi-threading mechanism.
I'm creating this PR so we have an easy way of importing the changes into Meta's internal repository. Please do not accept this change -- it's likely to require some cleanup work. But we should start experimenting & benchmarking with it and see how much perf gain we could reap (and hopefully report the numbers back to the original author).