-
Notifications
You must be signed in to change notification settings - Fork 92
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
Use unsafeDupablePerformIO instead of unsafePerformIO in struct field reads? #157
Comments
Can you point at a few salient examples? |
It does provide benefits. bracketed functions inside So we'd need to know exactly what you mean to judge whether that's a good idea. |
Indeed those particular examples are IIRC safe for
The difference with
Which takes a few extra precautions against some compiler optimisations, but ultimately (late) inlines to similar code. My sense is that if the |
As it unsafePerformIO is much slower and forces the program to run single-threadedly while providing no benefits.
The text was updated successfully, but these errors were encountered: