It would be interesting to see a comparison of this with the single-IORef-with-atomicModifyIORef pattern, which has been shown in the past to outpeform many specialised concurrent structures - it turns out that using purity and mutability gives you excellent ‘mutable’ concurrent structures.
It would be interesting to see a comparison of this with the single-IORef-with-atomicModifyIORef pattern, which has been shown in the past to outpeform many specialised concurrent structures - it turns out that using purity and mutability gives you excellent ‘mutable’ concurrent structures.