Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we do something like Java's lazySet in Haskell? #8

Open
symbiont-stevan-andjelkovic opened this issue Nov 10, 2021 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@symbiont-stevan-andjelkovic
Copy link
Contributor

symbiont-stevan-andjelkovic commented Nov 10, 2021

In the Java version they have one optimisation where they use lazySet which provides a store-store barrier rather than set which implies a full memory barrier.

atomic-primops exposes some memory barriers from the RTS, could they be used together with IORefs to achieve better performance than atomics (while retaining correctness)?

@symbiont-stevan-andjelkovic symbiont-stevan-andjelkovic added enhancement New feature or request help wanted Extra attention is needed labels Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant