ocaml-multicore / kcas

Software Transactional Memory for OCaml
https://ocaml-multicore.github.io/kcas/
ISC License
109 stars 11 forks source link

Avoid false sharing in `Hashtbl` benchmark #80

Closed polytypic closed 1 year ago

polytypic commented 1 year ago

I noticed that the Hashtbl benchmark was potentially suffering from false sharing. This PR adds some multicore magic to avoid the false sharing. In the future when aligned atomics land we can probably do something better.