Skip to content

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

@symbiont-stevan-andjelkovic

Description

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions