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

Faster tryReadTMVarIO #89

Open
epoberezkin opened this issue Aug 9, 2024 · 0 comments
Open

Faster tryReadTMVarIO #89

epoberezkin opened this issue Aug 9, 2024 · 0 comments

Comments

@epoberezkin
Copy link

epoberezkin commented Aug 9, 2024

Given that under the hood it's just TVar (Maybe a), we could have a faster equivalent of readTVarIO that doesn't do STM transaction accounting.

As a side note: the costs are not huge, but with the large number of operations in a transaction they add up to a lot of time, so this issue should be better documented - we had 40min execution time cut down to 10 sec by simply replacing atomically . mapM readTVar with mapM readTVarIO and a similar effects will be obtained with tryReadTVar[IO].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant